cloud-init team mailing list archive
-
cloud-init team
-
Mailing list archive
-
Message #00028
Re: 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
Follow ups
References