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 <andy.ning@windriver.com>
This commit is contained in:
Andy Ning 2024-01-31 09:49:54 -05:00
parent 19346c232a
commit 4af50a10bd
2 changed files with 8 additions and 0 deletions

View File

@ -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

View File

@ -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