- '-teamd'
snippets:
- 'tpl.001.basics.sh'
+ - 'tpl.010.authkeys.sh'
- 'tpl.041.network-el9.sh'
- 'tpl.070.tweak_grub.sh'
+ - 'tpl.075.tmp-tmpfs.sh'
- 'tpl.085.disable-ipv6.sh'
- 'tpl.100.clear_repos.sh'
- 'tpl.110.register-rhel.sh'
echo "${HASH_LINE}"
echo "Calling create_authkeys() ..."
echo
- local url="${cobbler_url}/${ws_rel_filesdir}/${system_status}/keys/auth_keys_pp_betrieb"
log "Creating /root/.ssh ..."
mkdir -pv /root/.ssh
echo "${HASH_LINE}" >> /root/.ssh/authorized_keys
echo "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDZ3QNzqiDE6jUzmXnOzIM93mZBPZtSDbCgYQd8xwOz9ZROxqLcckr8qIvyLFDv/fedwQlLDTg90LGX/zHHAB0T+0DB2dMFOWeSloIMMp+0WwG9i6H0ty6NUVSktvG6h4jbgkhMhHGUEHhxgR2LgxTjq8fpcMOLJ4HLLGW9W3BQOVtoi8hiffKm5DB9Au0HgNvXP/UrCQkBtFzMyhRb7D7aFyDyU/7SuM6m17DIYNx1cg79AH3mjRTQXaOVBrOBJ4uaqy6srbGzWs5FSIMMbgOrcmZRw5GilrG5dBbT/OQSN+sHlECx216pyLrbSWcwG1Fo11iI53pnColRUljMIPJ+XRffxT2yINEfyvfr0GGMKi4c5fcDumgYwT2+foefy72sBhNwKhzjuGySPgRU/1PH8oIcu4TJWyW1xi0AfVZnJhjU5RKeWQ9VMhh1nDntpRdD5z+0FrAL+9AINW4Bjboc6OisikIABBeoT9mbYNNGdHA7rpdJwURycJDpJDhyr0voNnmQ15JF6KZebM0+OW9apTxdotKPKYJ8pFBRGXrTENSVvFNIBbYD55IJ2MlOD2eX6XX2/tnHMdZHCE9Gi22Y8p1oiahLtCU3Th8WwazQlh4H9xAJzK0jp7MOpI3Y553i8zBU47VpO5juELH2bCNwChpdbZbY0i6MxQF61d2iJw== create-vmware-tpl@pixelpark.com" >> /root/.ssh/authorized_keys
- local tmp_file=$( mktemp )
- curl -s -S -o "${tmp_file}" --connect-timeout 3 "${url}" || true
- if [[ -s "${tmp_file}" ]] ; then
- cat "${tmp_file}" >> /root/.ssh/authorized_keys
- fi
- rm -v "${tmp_file}"
echo -e "\e[0Ksection_end:$( date +%s ):ks_create_authkeys\r\e[0K"
}
echo
log "Setting up /tmp as a tmpfs by a systemd mount unit ..."
echo
- mkdir --parents --verbose /etc/systemd/system/tmp.mount.d
- cat > /etc/systemd/system/tmp.mount.d/mount_options.conf <<-EOF
- [Mount]
- Options=mode=1777,strictatime,nosuid,nodev,size=10%%,nr_inodes=1m
- EOF
- echo
- echo "Generated /etc/systemd/system/tmp.mount.d/mount_options.conf:"
- echo "---------- snip -----------"
- cat /etc/systemd/system/tmp.mount.d/mount_options.conf
- echo "---------- snip -----------"
-
- echo
echo "Enabling unit tmp.mount ..."
systemctl enable tmp.mount