sap-hana
sap-hana copied to clipboard
Use cloud-init to setup nm-cloud-setup for RHEL
Problem
Solution
In order to have nm-cloud-setup
up and running in Azure RHEL VM images we need to do following:
dnf install -y NetworkManager-cloud-setup
mkdir -p /etc/systemd/system/nm-cloud-setup.service.d
cat > /etc/systemd/system/nm-cloud-setup.service.d/10-enable-azure.conf << EOF
[Service]
Environment=NM_CLOUD_SETUP_AZURE=yes
EOF
systemctl enable nm-cloud-setup.service
systemctl enable nm-cloud-setup.timer
systemctl restart nm-cloud-setup.service
So we need to either:
- rebuild Azure RHEL images with the service installed, configured & enabled.
- use this PR to setup this via cloud-init
Tests
Notes
@KimForss @rhmk please take a look. What do you thing about RHEL image rebuilt / using cloudinit?