mirror of
https://github.com/khuedoan/homelab.git
synced 2025-01-09 23:10:22 +07:00
52 lines
1.3 KiB
Django/Jinja
52 lines
1.3 KiB
Django/Jinja
#version=RHEL8
|
|
|
|
# Do not use graphical install
|
|
text
|
|
|
|
# Keyboard layouts
|
|
keyboard --xlayouts='us'
|
|
# System language
|
|
lang en_US.UTF-8
|
|
|
|
# Partition clearing information
|
|
clearpart --all --drives={{ disk }}
|
|
# Partitioning
|
|
ignoredisk --only-use={{ disk }}
|
|
autopart
|
|
|
|
# Network information
|
|
network --bootproto=static --device={{ network_interface }} --ip={{ hostvars[item]['ansible_host'] }} --gateway={{ ansible_default_ipv4.gateway }} --nameserver={{ dns_server }} --netmask={{ ansible_default_ipv4.netmask }} --ipv6=auto --hostname={{ hostvars[item]['inventory_hostname'] }} --activate
|
|
|
|
# Use network installation
|
|
repo --name="Minimal" --baseurl=http://{{ ansible_default_ipv4.address }}/os/Minimal
|
|
url --url="http://{{ ansible_default_ipv4.address }}/os"
|
|
# Disable Setup Agent on first boot
|
|
firstboot --disable
|
|
# Do not configure the X Window System
|
|
skipx
|
|
# Enable NTP
|
|
services --enabled="chronyd"
|
|
# System timezone
|
|
timezone {{ timezone }} --isUtc
|
|
|
|
# Create user (locked by default)
|
|
user --groups=wheel --name=admin
|
|
# Add SSH key
|
|
sshkey --username=root "{{ ssh_public_key }}"
|
|
|
|
# Disable SELinux
|
|
selinux --disabled
|
|
|
|
# Disable firewall
|
|
firewall --disabled
|
|
|
|
%packages
|
|
@^minimal-environment
|
|
iscsi-initiator-utils
|
|
%end
|
|
|
|
# Enable iSCSI for Kubernetes storage
|
|
services --enable=iscsid
|
|
|
|
reboot
|