So I've been playing around with cloud init scripts for VMs I have been
building.

I have one example, which I isn't working. Got it from the following
http://cloudinit.readthedocs.org/en/latest/topics/examples.html

So, its for the reboot/power off section

I've stripped out my cloud-init to just the basics, taken right from the
page. File contents are
power_state:
 delay: "+30"
 mode: poweroff
 message: Bye Bye
 timeout: 30

It doesn't work,  I noticed this line in my /var/log/cloud-init-output.log

__init__.py[WARNING]: Unhandled non-multipart (text/x-not-multipart)
userdata: 'power_state:\n delay: "+3...'


So I am thinking I need to define the format. I was looking at

http://cloudinit.readthedocs.org/en/latest/topics/format.html

But the examples don't seem to show any of that. Pointers would be great.
Thanks
_______________________________________________
Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
Post to     : openstack@lists.openstack.org
Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack

Reply via email to