On 04/14/2016 07:24 PM, solarflow99 wrote:
hi, thanks. but This is a nice working example of redhat's FAQ also
has. What i'm looking to do is extend user-data to run some commands,
or even better to call a shell script. I don't know if runcmd can do
that. I'll keep googling for examples I guess, just thought i'd check
here first.
If you format the user-data file as MIME multipart, you can embed both a cloud-config section and a shell script.
The multipart format is a little annoying to set up, but here's a helper script:
http://cloudinit.readthedocs.org/en/latest/topics/format.html#mime-multi-part-archive
Matthew Barnes