diff --git a/confluent_osdeploy/el8/profiles/default/kickstart b/confluent_osdeploy/el8/profiles/default/kickstart index f3332c67..3f94da2e 100644 --- a/confluent_osdeploy/el8/profiles/default/kickstart +++ b/confluent_osdeploy/el8/profiles/default/kickstart @@ -1,7 +1,30 @@ +# In this OS profile, data is largely filled in during the %pre +# phase, rather than the kickstart actually having the content. +# None of the files shall be replaced during an upgrade in +# /var/lib/confluent/public/os/, so customization should +# be done by modifying files in /var/lib/confluent/public/os/ + +# /tmp/rootpw will provide a 'rootpw' line, either locking password if not configured +# or the crypted form. %include /tmp/rootpw + +# timezone is fetched from confluent server, which provides the +# timezone that the management server itself is in by default. %include /tmp/timezone -%include /tmp/partitioning + +# similar to timezone, confluent is asked to provide the +# deployment servers language info and replicate that +# to the deployment target. %include /tmp/langinfo + +# The default partition scheme is applied to a single drive, using +# the getinstalldisk script to make a best guess as to the most +# appropriate device. See pre.sh and getinstalldisk to customize +# the automatic behavior, or comment out/delete the +# following line and provide your own manual partition plan +# instead +%include /tmp/partitioning + reboot %packages diff --git a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh index d78eb977..3d836845 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh @@ -1,4 +1,13 @@ #!/bin/sh + +# This runs prior to the installer beginning. This is used to rewrite the +# scripted install file, merging data from confluennt and identifying +# the most appropriate install source. + +# If you want to use a more custom partition plan, the easiest +# method is to edit the kicktstart file and comment out or +# delete %include /tmp/partitioning + nodename=$(grep ^NODENAME /etc/confluent.info|awk '{print $2}') locale=$(grep ^locale: /etc/confluent.deploycfg) locale=${locale#locale: } diff --git a/confluent_osdeploy/el8/profiles/default/scripts/prechroot.sh b/confluent_osdeploy/el8/profiles/default/scripts/prechroot.sh index 3b500931..9d326c6f 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/prechroot.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/prechroot.sh @@ -1,8 +1,19 @@ #!/bin/sh -# need to copy over ssh key info + +# This script runs after install is complete, but inside the installer +# environment. This is useful for carrying work done in pre/during the +# installer into the installed environment. + +# It is almost certainly more useful to use post.sh or firstboot.sh +# for customization, which will run in a more normal mechanism + nodename=$(grep ^NODENAME /etc/confluent.info|awk '{print $2}') export mgr profile nodename cp -a /etc/confluent /mnt/sysimage/etc -curl -f https://$mgr/confluent-public/os/$profile/scripts/functions > /tmp/functions +cp /tmp/functions /mnt/sysimage/etc/confluent/ . /tmp/functions + +# Preserve the ssh setup work done for the installer +# by copying into the target system and setting up +# host based authentication run_remote setupssh.sh