9661e49411
This update replaces compute references to worker in mtce, kickstarts, installer and bsp files. Tests Performed: Non-containerized deployment AIO-SX: Sanity and Nightly automated test suite AIO-DX: Sanity and Nightly automated test suite 2+2 System: Sanity and Nightly automated test suite 2+2 System: Horizon Patch Orchestration Kubernetes deployment: AIO-SX: Create, delete, reboot and rebuild instances 2+2+2 System: worker nodes are unlock enable and no alarms Story: 2004022 Task: 27013 Depends-On: https://review.openstack.org/#/c/624452/ Change-Id: I225f7d7143d841f80459603b27b95ac3f846c46f Signed-off-by: Tao Liu <tao.liu@windriver.com>
35 lines
857 B
INI
35 lines
857 B
INI
%post --erroronfail
|
|
|
|
# Source common functions
|
|
. /tmp/ks-functions.sh
|
|
|
|
# Retrieve the installation uuid from the controller we booted from
|
|
INSTALL_UUID=`curl -sf http://pxecontroller/feed/rel-xxxPLATFORM_RELEASExxx/install_uuid`
|
|
if [ $? -ne 0 ]
|
|
then
|
|
INSTALL_UUID=unknown
|
|
fi
|
|
|
|
# Set the security profile mode
|
|
secprofile="standard"
|
|
profile_mode=`cat /proc/cmdline |xargs -n1 echo |grep security_profile= | grep extended`
|
|
if [ -n "$profile_mode" ]; then
|
|
secprofile="extended"
|
|
fi
|
|
|
|
mkdir -p -m 0775 /etc/platform
|
|
cat <<EOF > /etc/platform/platform.conf
|
|
nodetype=worker
|
|
subfunction=worker
|
|
system_type=Standard
|
|
security_profile=$secprofile
|
|
INSTALL_UUID=$INSTALL_UUID
|
|
EOF
|
|
|
|
# mount the platform directory from the controller
|
|
cat >> /etc/fstab <<EOF
|
|
controller-platform-nfs:/opt/platform /opt/platform nfs timeo=30,udp,rsize=1024,wsize=1024,_netdev 0 0
|
|
EOF
|
|
|
|
%end
|