From 4af50a10bd1b2b9013a0608cb80bddb1a70c99f1 Mon Sep 17 00:00:00 2001 From: Andy Ning Date: Wed, 31 Jan 2024 09:49:54 -0500 Subject: [PATCH] Create a first controller flag during kickstart This change updated kickstart to create a .first_controller flag. This flag will be checked by controller_config to skip IPSec config and enablement for the very first controller. IPSec is configured and enabled by ansible bootstrap for the first controller. Test Plan: PASS: Install a AIO-DX system, verify the .first_controller file flag is created for the first controller during kickstart, but not for the other controller. PASS: Verify that IPSec config and enablement is skipped for first controller and IPSec is configured and enabled for the second controller. Story: 2010940 Task: 49547 Change-Id: Iea78885483a358dc3d8a296312c0a40c431b7ea5 Signed-off-by: Andy Ning --- kickstart/files/kickstart.cfg | 6 ++++++ kickstart/files/miniboot.cfg | 2 ++ 2 files changed, 8 insertions(+) diff --git a/kickstart/files/kickstart.cfg b/kickstart/files/kickstart.cfg index 6af5e981..e2a9f642 100644 --- a/kickstart/files/kickstart.cfg +++ b/kickstart/files/kickstart.cfg @@ -3218,6 +3218,12 @@ log_lvm_conf "SysRoot Updated" ${IMAGE_ROOTFS}/etc/lvm/lvm.conf # Create first_boot flag touch ${IMAGE_ROOTFS}/etc/platform/.first_boot +# Create first controller flag +$(is_system_node_install) +if [ $? -ne 0 ] ; then + touch ${IMAGE_ROOTFS}/etc/platform/.first_controller +fi + true %end diff --git a/kickstart/files/miniboot.cfg b/kickstart/files/miniboot.cfg index a19c45fc..3752578f 100644 --- a/kickstart/files/miniboot.cfg +++ b/kickstart/files/miniboot.cfg @@ -3057,6 +3057,8 @@ rc=$? # Create first_boot flag touch ${IMAGE_ROOTFS}/etc/platform/.first_boot +# Create first controller flag +touch ${IMAGE_ROOTFS}/etc/platform/.first_controller true %end