Created
May 27, 2014 07:22
-
-
Save ghaering/367e34a69f6a70eed3e0 to your computer and use it in GitHub Desktop.
Re-run cloud init scripts on Ubuntu 12.04 (AWS)
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
#!/bin/sh | |
rm -rf /var/lib/cloud/sem/* /var/lib/cloud/instance /var/lib/cloud/instances/* | |
cloud-init start 2>&1 > /dev/null | |
cloud-init-cfg all final |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For Redhat using cloud-init version 0.7.4 the following works
!/bin/sh
rm -rf /var/lib/cloud/sem/* /var/lib/cloud/instance /var/lib/cloud/instances/*
cloud-init init
cloud-init modules -m final