cloudstack-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Angus <>
Subject RE: Puppet user-data
Date Fri, 08 Feb 2013 08:59:17 GMT
Hi Andreas,

I've been doing a bit of work around userdata lately;

Assuming you've used something like Jason Hancock's blog to write the user-data to the virtual
router (remember it HAS to be base64 encoded)
Then you can run something like:

USERDATA=`curl http://[Virtual_Router_IP]/latest/user-data`

On the guest instance to retrieve it.

The trickier parts are
1. Parsing the data to get what you want out of the single string (we've developed  an xml-like
structure for the string to make it multi-purpose)
2. Getting the IP address of the virtual router you want in the first place - easy enough
if you are using a single network, but much more complex if you have multiple networks and
hence multiple Virtual Routers...


Paul Angus
S: +44 20 3603 0540 | M: +447711418784

-----Original Message-----
From: David Nalley []
Sent: 07 February 2013 14:38
Subject: Re: Puppet user-data

On Thu, Feb 7, 2013 at 5:07 AM, Fuchs, Andreas (SwissTXT)
<> wrote:
> Are there advantages or disadvantages of pulling userdate from the virtual router compared
the get things from the cloudstack API?
> Which is the preffered way?

So I've seen others use group (which is queryable via the API) - but
that puts CloudStack closer to an ENC, as you need to query CloudStack
for the Group an instance is in, as opposed to using factor at catalog
compilation time.  I tend to think that makes groups a bit less
flexible than user data.

ShapeBlue provides a range of strategic and technical consulting and implementation services
to help IT Service Providers and Enterprises to build a true IaaS compute cloud. ShapeBlue’s
expertise, combined with CloudStack technology, allows IT Service Providers and Enterprises
to deliver true, utility based, IaaS to the customer or end-user.


This email and any attachments to it may be confidential and are intended solely for the use
of the individual to whom it is addressed. Any views or opinions expressed are solely those
of the author and do not necessarily represent those of Shape Blue Ltd. If you are not the
intended recipient of this email, you must neither take any action based upon its contents,
nor copy or show it to anyone. Please contact the sender if you believe you have received
this email in error. Shape Blue Ltd is a company incorporated in England & Wales.
View raw message