Created
August 23, 2024 14:10
-
-
Save thimslugga/993fbb1642da1465188fcb0c2dd093c2 to your computer and use it in GitHub Desktop.
Setup NM Cloud Setup Plugin on Rocky Linux 9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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