← Back to team overview

cloud-init team mailing list archive

Re: Cloud-init not installing rpms (CentOS 6.5)

 

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: "justin@xxxxxxxxxxxxxx<mailto:justin@xxxxxxxxxxxxxx>" <justin@xxxxxxxxxxxxxx<mailto:justin@xxxxxxxxxxxxxx>>
Date: Friday, March 28, 2014 at 2:15 PM
To: Joshua Harlow <harlowja@xxxxxxxxxxxxx<mailto:harlowja@xxxxxxxxxxxxx>>
Cc: "cloud-init@xxxxxxxxxxxxxxxxxxx<mailto:cloud-init@xxxxxxxxxxxxxxxxxxx>" <cloud-init@xxxxxxxxxxxxxxxxxxx<mailto:cloud-init@xxxxxxxxxxxxxxxxxxx>>
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



Follow ups

References