Skip to content

Instantly share code, notes, and snippets.

@thimslugga
Created August 23, 2024 14:10
Show Gist options
  • Save thimslugga/993fbb1642da1465188fcb0c2dd093c2 to your computer and use it in GitHub Desktop.
Save thimslugga/993fbb1642da1465188fcb0c2dd093c2 to your computer and use it in GitHub Desktop.
Setup NM Cloud Setup Plugin on Rocky Linux 9
#!/usr/bin/env bash
sudo dnf install -y NetworkManager-cloud-setup
sudo systemctl enable --now nm-cloud-setup.service
sudo systemctl enable --now nm-cloud-setup.timer
sudo mkdir -pv /etc/systemd/system/nm-cloud-setup.service.d
cat <<'EOF' | sudo tee /etc/systemd/system/nm-cloud-setup.service.d/00-override.conf
[Service]
Environment=NM_CLOUD_SETUP_EC2=yes
EOF
sudo systemctl daemon-reload
sudo systemctl try-reload-or-restart nm-cloud-setup.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment