diff --git a/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/firstboot.sh b/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/firstboot.sh index b9cb32e3..19c1a073 100755 --- a/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/firstboot.sh +++ b/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/firstboot.sh @@ -11,4 +11,4 @@ apikey=$(cat /etc/confluent/confluent.apikey) mgr=$(grep ^deploy_server: /etc/confluent/confluent.deploycfg |awk '{print $2}') hostnamectl set-hostname $(grep ^NODENAME: /etc/confluent/confluent.info | awk '{print $2}') touch /etc/cloud/cloud-init.disabled -curl --capath /etc/confluent/tls -f -X POST -d "status: complete" https://$mgr/confluent-api/self/updatestatus +curl --capath /etc/confluent/tls -f -H "CONFLUENT_NODENAME: $nodename" -H "CONFLUENT_APIKEY: $apikey" -X POST -d "status: complete" https://$mgr/confluent-api/self/updatestatus diff --git a/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/post.sh b/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/post.sh index 7698c9e1..27f35cc7 100755 --- a/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/post.sh +++ b/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/post.sh @@ -3,6 +3,7 @@ cp -a /root/.ssh /target/root/ mkdir -p /target/etc/confluent/ssh/sshd_config.d/ chmod 700 /target/etc/confluent cp /custom-installation/confluent/* /target/etc/confluent/ +cp -a /custom-installation/tls /etc/confluent/ chmod go-rwx /etc/confluent/* for i in /custom-installation/ssh/*.ca; do echo '@cert-authority *' $(cat $i) >> /target/etc/ssh/ssh_known_hosts