cloud-init team mailing list archive
-
cloud-init team
-
Mailing list archive
-
Message #00026
Re: Cloud-init not installing rpms (CentOS 6.5)
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
- 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.
-Josh
From: "justin@xxxxxxxxxxxxxx<mailto:justin@xxxxxxxxxxxxxx>" <justin@xxxxxxxxxxxxxx<mailto:justin@xxxxxxxxxxxxxx>>
Date: Friday, March 28, 2014 at 1:49 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)
Cool. :)
The cloud-init.log file:
http://fpaste.org/89642/39603956/
The cloud.cfg file:
http://fpaste.org/89644/60397241/
Anything stand out?
Regards and best wishes,
Justin Clift
On 2014-03-28 20:25, Joshua Harlow wrote:
Can u possibly pastebin the cloud-init log file and cloud.cfg
somewhere so we can investigate?
The logs usually have enough detail to figure out what/why.
Thx!
-Josh
From: "justin@xxxxxxxxxxxxxx<mailto:justin@xxxxxxxxxxxxxx> [5]" <justin@xxxxxxxxxxxxxx<mailto:justin@xxxxxxxxxxxxxx> [6]>
Date: Friday, March 28, 2014 at 12:47 PM
To: "cloud-init@xxxxxxxxxxxxxxxxxxx<mailto:cloud-init@xxxxxxxxxxxxxxxxxxx> [7]"
<cloud-init@xxxxxxxxxxxxxxxxxxx<mailto:cloud-init@xxxxxxxxxxxxxxxxxxx> [8]>
Subject: [Cloud-init] Cloud-init not installing rpms (CentOS 6.5)
Hi all,
Trying to spin up some VMs in Rackspace, but having
trouble getting rpms installed.
Using #cloud-config, passed to it via config-drive.
Passing the #cloud-config file itself seems to work,
as runcmd thing work. Anything in "packages" isn't
though.
eg (keeping it simple) this very simple config should
install git, then print a "complete" message to a
file in /tmp:
****************************************************
#cloud-config
packages:
- git
runcmd:
- echo 'complete' >> /tmp/my-cloud-config.log
****************************************************
The "complete" string is being written to the file
in /tmp correctly. But no "git" being installed, and
no mention of git anywhere in /var/log/cloud-init.log.
This is using cloud-init-0.7.4-2.el6.noarch.
Anyone have ideas on what I should check next, to find
out what's happening?
Regards and best wishes,
Justin Clift
Follow ups
References