Skip to content

Instantly share code, notes, and snippets.

@maoueh
Created June 2, 2016 14:28
Show Gist options
  • Star 17 You must be signed in to star a gist
  • Fork 6 You must be signed in to fork a gist
  • Save maoueh/8662b8e0da0ccd99296a9a9a6b67dad0 to your computer and use it in GitHub Desktop.
Save maoueh/8662b8e0da0ccd99296a9a9a6b67dad0 to your computer and use it in GitHub Desktop.
Small script to test changes made to cloud init config without rebooting
rm -rf /var/lib/cloud/instance && rm -rf /var/lib/cloud/instances/* && rm -rf /var/lib/cloud/sem/*
cloud-init init && cloud-init modules --mode config && cloud-init modules --mode final
@waveywhite
Copy link

Now this is a lifesaver. Thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment