eula --agreed #version=RHEL8 text %packages @^server-product-environment kexec-tools podman python3 tmux iperf3 fio ipmitool gcc-c++ psmisc python3-distro net-tools sysstat ethtool tcpdump util-linux bind-utils emacs-nox nmap telnet %end # Keyboard layouts keyboard --xlayouts='se','us' # System language lang en_US.UTF-8 --addsupport=sv_SE.UTF-8 # Network information network --hostname=localhost.localdomain # Use network installation url --url="http://aughra.uppmax.uu.se/repos/uppmax/live/RHEL8.3-inst-media-from-SP/8.3" # SELinux och firewalld configuration selinux --disabled firewall --disabled # Run the Setup Agent on first boot firstboot --disable # Do not configure the X Window System skipx ignoredisk --only-use=sda autopart # Partition clearing information clearpart --all --drives=sda # System timezone timezone Europe/Stockholm --isUtc # Root password rootpw --plaintext uppmaxroot %addon com_redhat_kdump --enable --reserve-mb='auto' %end # Installer environment %pre %end %anaconda pwpolicy root --minlen=6 --minquality=1 --notstrict --nochanges --notempty pwpolicy user --minlen=6 --minquality=1 --notstrict --nochanges --emptyok pwpolicy luks --minlen=6 --minquality=1 --notstrict --nochanges --notempty %end %post --logfile=/root/post_install.log mkdir -p /root/.ssh mkdir -p /etc/ceph alternatives --set python /usr/bin/python3 sed -i 's/enabled=1/enabled=0/' /etc/dnf/plugins/subscription-manager.conf cat < /etc/resolv.conf_uppmax options timeout:1 options rotate options attempts:5 nameserver 172.18.37.34 nameserver 172.18.37.37 search uppmax.uu.se EOF rm -f /etc/resolv.conf ln -s /etc/resolv.conf_uppmax /etc/resolv.conf echo '*.* @@172.18.37.20:514' >>/etc/rsyslog.conf systemctl restart rsyslog hostnamectl set-hostname spirula-osd1.uppmax.uu.se curl --create-dirs -o /etc/puppetlabs/puppet/puppet.conf http://aughra/repos/puppetlabs.conf echo ' environment = newpuppet' >> /etc/puppetlabs/puppet/puppet.conf yum install http://aughra/repos/mirror/live/rsync.puppet.com/yum/puppet7/el/8/x86_64/puppet-agent-7.21.0-1.el8.x86_64.rpm -y ln -s /opt/puppetlabs/puppet/bin/wrapper.sh /usr/local/bin/puppet mkdir /etc/uppmax.repos.d echo reposdir=/etc/uppmax.repos.d >>/etc/yum.conf systemctl enable puppet /opt/puppetlabs/puppet/bin/puppet agent -tv yum --nogpgcheck install -y epel-release fping screen rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-8 rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-puppet7-release rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-2025-04-06-puppet7-release yum update -y rm -f /etc/motd.d/cockpit /etc/motd.d/insights-client %end reboot