Skip to content

Instantly share code, notes, and snippets.

@kmcquade
Forked from maoueh/test-cloud-init-run.sh
Created June 7, 2018 20:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kmcquade/bb3da63ac923da6b8ce78742a482437f to your computer and use it in GitHub Desktop.
Save kmcquade/bb3da63ac923da6b8ce78742a482437f 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment