From fe9d0e84d37426aab1caa98e348dccc57afc9149 Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Mon, 22 Mar 2021 10:36:14 -0400 Subject: [PATCH] Ubuntu firstboot ansible and scripts directory support --- .../ubuntu20.04/profiles/default/scripts/firstboot.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/firstboot.sh b/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/firstboot.sh index 19c1a073..f07ada2c 100755 --- a/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/firstboot.sh +++ b/confluent_osdeploy/ubuntu20.04/profiles/default/scripts/firstboot.sh @@ -11,4 +11,8 @@ 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 +source /etc/confluent/functions + +run_remote_parts firstboot +run_remote_config firstboot 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