You can deploy the Wind River Cloud Platform operating system on a server using a server YAML file.
The following sample YAML file shows the attributes and values for deployment on Dell PowerEdge 15th generation servers.
- These files are only for reference. You must use the sample files provided with Bare Metal Orchestrator deployment.
- The comments in the YAML file start with a hash character (#) and are followed by a text or the name of the attribute. You can remove # to un-comment and edit the attribute value.
- Replace what appears between italicized, bold chevrons (
< >
) with user-supplied content. For example:password: <REPLACE_THIS>
Sample server YAML file for Wind River Cloud Platform operating system deployment
apiVersion: mw.dell.com/v4
kind: Server
metadata:
name: wr-controller
labels:
model: dell
site: gc
spec:
bmcEndPoint: "https://<BMC-IP>"
userName: "root"
password: "<REPLACE_THIS>"
powerstate: "On"
bios:
attributes:
bootMode: Uefi
serialPortAddress: Com2
bmc:
- attributes:
rfsIgnoreCertWarning: "Yes"
serialRedirectEnable: Enabled
operatingsystemname: "wrmedia"
operatingsystemconfig:
networkingDetails:
hostName: "wr-hostname"
# installVolumeID: "Disk.Virtual.0:RAID.Slot.2-1"
bootMenuOption: "2"
minimumDiskSize: 500 // size in GB
installVolumeTypeOrder:
- type: NVME
- type: BOSS
- type: RAID
name: "NAME_OF_VIRTUAL_DISK"
- type: HBA
configtype: "kickstart"
configdata: |
OAM_DEV=enp94s0f0
OAM_VLAN=33
OSHOSTNAME={{.OSNetworkingDetails.HostName}}
cat << EOF > /etc/sysconfig/network-scripts/ifcfg-$OAM_DEV
DEVICE=$OAM_DEV
BOOTPROTO=none
ONBOOT=yes
LINKDELAY=20
EOF
cat << EOF > /etc/sysconfig/network-scripts/ifcfg-$OAM_DEV.$OAM_VLAN
DEVICE=$OAM_DEV.$OAM_VLAN
BOOTPROTO=none
IPADDR=192.168.33.10
PREFIX=24
GATEWAY=192.168.33.100
ONBOOT=yes
VLAN=yes
LINKDELAY=20
HOSTNAME=$OSHOSTNAME
EOF
cat > /usr/lib/systemd/system/install_complete.service << EOF
[Unit]
Description=Install Complete
After=systemd-firstboot.target systemd-journald.service
[Service]
OSHOSTNAME={{.OSNetworkingDetails.HostName}}
Type=oneshot
User=root
RemainAfterExit=No
ExecStart=/usr/bin/sh -c 'echo "sol_verify_complete" > /dev/ttyS1'
ExecStart=/usr/bin/sh -c 'sleep 5m'
ExecStart=/usr/bin/sh -c 'printf "bmo_ip_details_delimiter " >> /dev/ttyS1'
ExecStart=/usr/bin/sh -c 'ip -4 addr |egrep "en[a-z][0-9]+|eth[0-9]+" | grep "inet" | cut -d " " -f 11 >> /dev/ttyS1'
ExecStart=/usr/bin/sh -c 'printf ":" >> /dev/ttyS1'
ExecStart=/usr/bin/sh -c 'hostname -I|cut -d" " -f 1 >> /dev/ttyS1'
ExecStart=/usr/bin/sh -c 'printf " bmo_ip_details_delimiter" >> /dev/ttyS1'
ExecStart=/usr/bin/sh -c 'sudo hostnamectl set-hostname $OSHOSTNAME '
ExecStart=/usr/bin/sh -c 'cat $OSHOSTNAME >> /etc/hostname'
EOF
/usr/bin/ln -sf /usr/lib/systemd/system/install_complete.service /usr/lib/systemd/system/default.target.wants/install_complete.service