From 82a783fa554c33acc9020e6c188257dec0d0617a Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Thu, 18 Nov 2021 16:51:18 -0500 Subject: [PATCH] Register CA certs in global location for ubuntu --- .../initramfs/scripts/init-premount/confluent | 2 ++ .../ubuntu20.04-diskless/profiles/default/scripts/functions | 1 + 2 files changed, 3 insertions(+) diff --git a/confluent_osdeploy/ubuntu20.04-diskless/initramfs/scripts/init-premount/confluent b/confluent_osdeploy/ubuntu20.04-diskless/initramfs/scripts/init-premount/confluent index 30831e88..6f4e0dbd 100644 --- a/confluent_osdeploy/ubuntu20.04-diskless/initramfs/scripts/init-premount/confluent +++ b/confluent_osdeploy/ubuntu20.04-diskless/initramfs/scripts/init-premount/confluent @@ -64,6 +64,8 @@ for nic in *; do done mkdir -p /etc/confluent cd - > /dev/null +mkdir -p /etc/ssl/certs +cat /tls/*.pem > /etc/ssl/certs/ca-certificates.crt cat /tls/*.pem > /etc/confluent/ca.pem /opt/confluent/bin/copernicus -t > /etc/confluent/confluent.info TRIES=0 diff --git a/confluent_osdeploy/ubuntu20.04-diskless/profiles/default/scripts/functions b/confluent_osdeploy/ubuntu20.04-diskless/profiles/default/scripts/functions index d70c63db..170cb897 100644 --- a/confluent_osdeploy/ubuntu20.04-diskless/profiles/default/scripts/functions +++ b/confluent_osdeploy/ubuntu20.04-diskless/profiles/default/scripts/functions @@ -22,6 +22,7 @@ function set_confluent_vars() { if [ -z "$nodename" ]; then nodename=$(grep ^NODENAME: /etc/confluent/confluent.info | awk '{print $2}') fi + confluent_nodename=$nodename if [[ "$confluent_mgr" == *"%"* ]]; then confluent_mgr="" fi