-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathtemp
More file actions
14 lines (12 loc) · 650 Bytes
/
temp
File metadata and controls
14 lines (12 loc) · 650 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# Get base64-encoded config data
export CONFIG_DATA=$(cat ~/ocpinstall/install/worker.ign | base64 -w0)
# Get IP address and nameserver
export SEGMENT=$(hostname -I|cut -d. -f3)
export IPCFG="ip=192.168.${SEGMENT}.201::192.168.${SEGMENT}.1:255.255.255.0:::none nameserver=192.168.${SEGMENT}.10"
# Update Settings, and allocate 2CPU and 8GB RAM
govc vm.change -vm=worker1.nfndc.dynamic.opentlc.com \
-c=2 \
-m=8192 \
-e="guestinfo.ignition.config.data.encoding=base64" \
-e="guestinfo.ignition.config.data=${CONFIG_DATA}" \
-e="guestinfo.afterburn.initrd.network-kargs=${IPCFG}"