vsphere-k8s/packer/scripts/enable-vmware-customization.sh

9 lines
409 B
Bash
Raw Permalink Normal View History

2022-12-02 21:32:50 +00:00
#!/bin/bash -eu
echo '>> Enabling legacy VMware Guest Customization...'
2022-12-13 21:25:05 +00:00
if grep -q 'disable_vmware_customization' /etc/cloud/cloud.cfg; then
sudo sed -i 's/^disable_vmware_customization:.*$/disable_vmware_customization: True/' /etc/cloud/cloud.cfg
else
echo 'disable_vmware_customization: true' | sudo tee -a /etc/cloud/cloud.cfg
fi
2022-12-02 21:32:50 +00:00
sudo vmware-toolbox-cmd config set deployPkg enable-custom-scripts true