azure: enable the Azure Linux Agent service

The WALinuxAgent package was already being installed, but the service
was enabled. This ensures it'll start when the VM is created.
This commit is contained in:
Jeremy Cline
2024-02-23 00:31:35 +00:00
committed by ngompa
parent 7497716476
commit 78ea0154a4
+3
View File
@@ -117,6 +117,9 @@ cat >> /etc/chrony.conf << EOF
# https://docs.microsoft.com/en-us/azure/virtual-machines/linux/time-sync#check-for-ptp-clock-source # https://docs.microsoft.com/en-us/azure/virtual-machines/linux/time-sync#check-for-ptp-clock-source
refclock PHC /dev/ptp_hyperv poll 3 dpoll -2 offset 0 refclock PHC /dev/ptp_hyperv poll 3 dpoll -2 offset 0
EOF EOF
# Enable the Azure Linux Agent service
systemctl enable waagent.service
fi fi
if [[ "$kiwi_profiles" == *"GCE"* ]]; then if [[ "$kiwi_profiles" == *"GCE"* ]]; then