U should be able to put it in /etc/cloud/cloud.cfg.d/ http://cloudinit.readthedocs.org/en/latest/topics/merging.html should help u with this I think.
Let us know if all things go fine :) From: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Date: Friday, March 28, 2014 at 2:15 PM To: Joshua Harlow <[email protected]<mailto:[email protected]>> Cc: "[email protected]<mailto:[email protected]>" <[email protected]<mailto:[email protected]>> Subject: Re: [Cloud-init] Cloud-init not installing rpms (CentOS 6.5) On 2014-03-28 20:55, Joshua Harlow wrote: Yup, I think I see it. U are wanting git to be installed via the packages module, except the cloud.cfg u have (or the one that is provided by default) doesn't include the package installation module. http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/config/cloud.cfg#L53 [7] - package-update-upgrade-install I don't see this module in your cloud.cfg file (so that would likely be why its not getting installed). U can try adding it (by either replacing the cloud_config_modules: with a new modified section) and see if it happens then. Thanks Josh, that's Excellent! This indeed seems to be the root cause of the problem. To test, added " - package-update-upgrade-install" to the "cloud_config_modules section of /etc/cloud/cloud.cfg, then ran: # service cloud-config start Voila, yum immediately installed git. :) Now to experiment a bit... Ideally, there will be a way to inject this option somewhere in the filesystem so cloud-init sees it. Maybe under /etc/cloud/cloud.cfg.d/. Will find out. :) If there not, then I guess asking Rackspace to include this option in their builds will be needed. Worth a shot if the above fails. Thank you very much for the assist Josh. :) Regards and best wishes, Justin Clift -Josh
-- Mailing list: https://launchpad.net/~cloud-init Post to : [email protected] Unsubscribe : https://launchpad.net/~cloud-init More help : https://help.launchpad.net/ListHelp

