Instantly share code, notes, and snippets.

Embed
What would you like to do?
Re-run cloud init scripts on Ubuntu 12.04 (AWS)
#!/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
@anthonyscata

This comment has been minimized.

Copy link

anthonyscata commented Sep 4, 2014

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

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