<commit_before># basics
text
skipx
cmdline
{% if hostvars[item].vnc_password is defined and (hostvars[item].vnc_password|length >= 6 and hostvars[item].vnc_password|length <= 8) %}
vnc --password={{ hostvars[item].vnc_password }}
#{% else %}
#vnc
{% endif %}
install
reboot
firstboot --disable
{% if hostvars[item].yum_proxy is defined %}
url --url="{{ location }}" --proxy={{ hostvars[item].yum_proxy }}
{% else %}
url --url="{{ location }}"
{% endif %}

# localization
lang en_GB
keyboard fi
timezone --utc Europe/Helsinki

# repos
{% if hostvars[item].repos is defined %}
{% for repo in hostvars[item].repos %}
{% if hostvars[item].yum_proxy is defined %}
repo --name="{{ repo.name }}" --baseurl="{{ repo.url }}" --proxy={{ hostvars[item].yum_proxy }}
{% else %}
repo --name="{{ repo.name }}" --baseurl="{{ repo.url }}"
{% endif %}
{% endfor %}
{% endif %}

# network

network --onboot=yes --bootproto=dhcp --device={{ hostvars[item].internal_interface }} --noipv6
{% if hostvars[item].external_interface is defined %}
network --onboot={{hostvars[item].enable_ext_nic}} --device={{ hostvars[item].external_interface }} --bootproto=static --ip={{ hostvars[item].ext_ip_addr }} --netmask={{ hostvars[item].ext_net_mask }} --nameserver={{hostvars[item].nameserver1}} --hostname={{ hostvars[item].fqdn }} --gateway={{hostvars[item].ext_gateway }} --noipv6
{% endif %}

# firewall
firewall --enabled --service=ssh

{% if hostvars[item].central_log_host is defined %}
# Logging
logging --host={{ hostvars[item].central_log_host|replace("@","") }}
{% endif %}

# authentication
rootpw --iscrypted {{ rootpwhash }}
authconfig --useshadow --passalgo=sha512 --kickstart
selinux --disabled

# disks
{{ hostvars[item].kickstart_partitions }}

%packages --nobase
@core
@server-policy
vim-enhanced
openssh-clients<commit_msg>Program group server-policy hasn't existed for awhile and now it stops installation<commit_after># basics
text
skipx
cmdline
{% if hostvars[item].vnc_password is defined and (hostvars[item].vnc_password|length >= 6 and hostvars[item].vnc_password|length <= 8) %}
vnc --password={{ hostvars[item].vnc_password }}
#{% else %}
#vnc
{% endif %}
install
reboot
firstboot --disable
{% if hostvars[item].yum_proxy is defined %}
url --url="{{ location }}" --proxy={{ hostvars[item].yum_proxy }}
{% else %}
url --url="{{ location }}"
{% endif %}

# localization
lang en_GB
keyboard fi
timezone --utc Europe/Helsinki

# repos
{% if hostvars[item].repos is defined %}
{% for repo in hostvars[item].repos %}
{% if hostvars[item].yum_proxy is defined %}
repo --name="{{ repo.name }}" --baseurl="{{ repo.url }}" --proxy={{ hostvars[item].yum_proxy }}
{% else %}
repo --name="{{ repo.name }}" --baseurl="{{ repo.url }}"
{% endif %}
{% endfor %}
{% endif %}

# network

network --onboot=yes --bootproto=dhcp --device={{ hostvars[item].internal_interface }} --noipv6
{% if hostvars[item].external_interface is defined %}
network --onboot={{hostvars[item].enable_ext_nic}} --device={{ hostvars[item].external_interface }} --bootproto=static --ip={{ hostvars[item].ext_ip_addr }} --netmask={{ hostvars[item].ext_net_mask }} --nameserver={{hostvars[item].nameserver1}} --hostname={{ hostvars[item].fqdn }} --gateway={{hostvars[item].ext_gateway }} --noipv6
{% endif %}

# firewall
firewall --enabled --service=ssh

{% if hostvars[item].central_log_host is defined %}
# Logging
logging --host={{ hostvars[item].central_log_host|replace("@","") }}
{% endif %}

# authentication
rootpw --iscrypted {{ rootpwhash }}
authconfig --useshadow --passalgo=sha512 --kickstart
selinux --disabled

# disks
{{ hostvars[item].kickstart_partitions }}

%packages --nobase
@core
vim-enhanced
openssh-clients
{'fraction_non_alphanumeric': 0.19332066250339397, 'fraction_numerical': 0.004344284550638067, 'mean_word_length': 5.029459901800327, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1457246', 'n_tokens_mistral': 1308, 'n_tokens_neox': 1213, 'n_words': 275}