diff --git a/confluent_osdeploy/el7/profiles/default/scripts/post.sh b/confluent_osdeploy/el7/profiles/default/scripts/post.sh index 408cfee4..8d443fc0 100644 --- a/confluent_osdeploy/el7/profiles/default/scripts/post.sh +++ b/confluent_osdeploy/el7/profiles/default/scripts/post.sh @@ -9,7 +9,7 @@ apikey=$(cat /etc/confluent/confluent.apikey) chmod 700 /etc/confluent chmod og-rwx /etc/confluent/* -export mgr profile nodename +export confluent_mgr confluent_profile nodename . /etc/confluent/functions diff --git a/confluent_osdeploy/el7/profiles/default/scripts/pre.sh b/confluent_osdeploy/el7/profiles/default/scripts/pre.sh index 5695e550..78848259 100644 --- a/confluent_osdeploy/el7/profiles/default/scripts/pre.sh +++ b/confluent_osdeploy/el7/profiles/default/scripts/pre.sh @@ -65,7 +65,7 @@ if [ "$cryptboot" == "tpm2" ]; then fi -export mgr profile nodename +export confluent_mgr confluent_profile nodename curl -sf https://$confluent_mgr/confluent-public/os/$confluent_profile/scripts/functions > /tmp/functions . /tmp/functions run_remote pre.custom diff --git a/confluent_osdeploy/el7/profiles/default/scripts/prechroot.sh b/confluent_osdeploy/el7/profiles/default/scripts/prechroot.sh index 48fa65f7..5b6d5be8 100644 --- a/confluent_osdeploy/el7/profiles/default/scripts/prechroot.sh +++ b/confluent_osdeploy/el7/profiles/default/scripts/prechroot.sh @@ -8,7 +8,7 @@ # for customization, which will run in a more normal mechanism nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}') -export mgr profile nodename +export confluent_mgr confluent_profile nodename cp -a /etc/confluent /mnt/sysimage/etc chmod -R og-rwx /mnt/sysimage/etc/confluent cp /tmp/functions /mnt/sysimage/etc/confluent/ diff --git a/confluent_osdeploy/el8/profiles/default/scripts/post.sh b/confluent_osdeploy/el8/profiles/default/scripts/post.sh index 408cfee4..8d443fc0 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/post.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/post.sh @@ -9,7 +9,7 @@ apikey=$(cat /etc/confluent/confluent.apikey) chmod 700 /etc/confluent chmod og-rwx /etc/confluent/* -export mgr profile nodename +export confluent_mgr confluent_profile nodename . /etc/confluent/functions diff --git a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh index f3a5a730..2a97aedf 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/pre.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/pre.sh @@ -64,6 +64,7 @@ done /usr/sbin/sshd -f /etc/ssh/sshd_config.anaconda cryptboot=$(grep ^encryptboot: /etc/confluent/confluent.deploycfg | awk '{print $2}') LUKSPARTY='' +touch /tmp/cryptpkglist touch /tmp/addonpackages if [ "$cryptboot" == "tpm2" ]; then LUKSPARTY="--encrypted --passphrase=$(cat /etc/confluent/confluent.apikey)" @@ -72,7 +73,7 @@ if [ "$cryptboot" == "tpm2" ]; then fi -export mgr profile nodename +export confluent_mgr confluent_profile nodename curl -sf https://$confluent_mgr/confluent-public/os/$confluent_profile/scripts/functions > /tmp/functions . /tmp/functions run_remote pre.custom diff --git a/confluent_osdeploy/el8/profiles/default/scripts/prechroot.sh b/confluent_osdeploy/el8/profiles/default/scripts/prechroot.sh index 48fa65f7..5b6d5be8 100644 --- a/confluent_osdeploy/el8/profiles/default/scripts/prechroot.sh +++ b/confluent_osdeploy/el8/profiles/default/scripts/prechroot.sh @@ -8,7 +8,7 @@ # for customization, which will run in a more normal mechanism nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}') -export mgr profile nodename +export confluent_mgr confluent_profile nodename cp -a /etc/confluent /mnt/sysimage/etc chmod -R og-rwx /mnt/sysimage/etc/confluent cp /tmp/functions /mnt/sysimage/etc/confluent/ diff --git a/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis b/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis index 4579a5f3..f12cdb3f 100644 --- a/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis +++ b/confluent_osdeploy/genesis/initramfs/opt/confluent/bin/rungenesis @@ -93,11 +93,11 @@ for pubkey in /etc/ssh/ssh_host*key.pub; do echo HostKey $privfile >> /etc/ssh/sshd_config done /usr/sbin/sshd -profile=$(grep ^profile: /etc/confluent/confluent.deploycfg | awk '{print $2}') -mgr=$(grep ^deploy_server: /etc/confluent/confluent.deploycfg | awk '{print $2}') -export profile mgr -echo "Running https://$mgr/confluent-public/os/$profile/scripts/onboot.sh" -/usr/libexec/platform-python /opt/confluent/bin/apiclient /confluent-public/os/$profile/scripts/functions > /tmp/functions +confluent_profile=$(grep ^profile: /etc/confluent/confluent.deploycfg | awk '{print $2}') +confluent_mgr=$(grep ^deploy_server: /etc/confluent/confluent.deploycfg | awk '{print $2}') +export confluent_profile confluent_mgr +echo "Running https://$confluent_mgr/confluent-public/os/$confluent_profile/scripts/onboot.sh" +/usr/libexec/platform-python /opt/confluent/bin/apiclient /confluent-public/os/$confluent_profile/scripts/functions > /tmp/functions . /tmp/functions run_remote onboot.sh while :; do diff --git a/confluent_osdeploy/suse15/profiles/hpc/scripts/post.sh b/confluent_osdeploy/suse15/profiles/hpc/scripts/post.sh index ba4f95c4..2e0da964 100644 --- a/confluent_osdeploy/suse15/profiles/hpc/scripts/post.sh +++ b/confluent_osdeploy/suse15/profiles/hpc/scripts/post.sh @@ -20,7 +20,7 @@ chmod 700 /etc/confluent chmod og-rwx /etc/confluent/* -export mgr profile nodename +export confluent_mgr confluent_profile nodename . /etc/confluent/functions # This will induce server side processing of the syncfile contents if diff --git a/confluent_osdeploy/suse15/profiles/hpc/scripts/prechroot.sh b/confluent_osdeploy/suse15/profiles/hpc/scripts/prechroot.sh index 1f1396f1..7a3b0b63 100644 --- a/confluent_osdeploy/suse15/profiles/hpc/scripts/prechroot.sh +++ b/confluent_osdeploy/suse15/profiles/hpc/scripts/prechroot.sh @@ -7,7 +7,7 @@ confluent_mgr=$(grep ^deploy_server /etc/confluent/confluent.deploycfg|awk '{print $2}') confluent_profile=$(grep ^profile: /etc/confluent/confluent.deploycfg|sed -e 's/^profile: //') nodename=$(grep ^NODENAME /etc/confluent/confluent.info|awk '{print $2}') -export mgr profile nodename +export confluent_mgr confluent_profile nodename mkdir -p /mnt/etc/confluent chmod 700 /mnt/etc/confluent cp /tmp/functions /mnt/etc/confluent/ diff --git a/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/post.sh b/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/post.sh index e7ac0a11..5bd43bc6 100755 --- a/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/post.sh +++ b/confluent_osdeploy/ubuntu20.04/initramfs/custom-installation/post.sh @@ -2,6 +2,6 @@ deploycfg=/custom-installation/confluent/confluent.deploycfg confluent_mgr=$(grep ^deploy_server $deploycfg|awk '{print $2}') confluent_profile=$(grep ^profile: $deploycfg|awk '{print $2}') -export deploycfg mgr profile +export deploycfg confluent_mgr confluent_profile curl -f https://$confluent_mgr/confluent-public/os/$confluent_profile/scripts/post.sh > /tmp/post.sh . /tmp/post.sh