Skip to content

Instantly share code, notes, and snippets.

@kyxap1
Forked from maoueh/test-cloud-init-run.sh
Created November 1, 2017 00:47
Show Gist options
  • Save kyxap1/c9c66bec598fc9402842b87ad0b9d854 to your computer and use it in GitHub Desktop.
Save kyxap1/c9c66bec598fc9402842b87ad0b9d854 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
@ckingbailey
Copy link

neat!

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