On Thu, Feb 19, 2015 at 09:33:36AM -0700, Grant Schoep wrote: > 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...'
Any user-data script to be handled by cloud-init needs to specify a "content type" as the first line of a script. For a cloud-config file, like you're using, you would need to start with '#cloud-config', like this: #cloud-config power_state: delay: "+30" mode: poweroff message: Bye Bye timeout: 30 -- Lars Kellogg-Stedman <l...@redhat.com> | larsks @ {freenode,twitter,github} Cloud Engineering / OpenStack | http://blog.oddbit.com/
pgpDT8pPZwYCP.pgp
Description: PGP signature
_______________________________________________ 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