[ubuntu-cloud] #include user-data and arguments
smoser at ubuntu.com
Fri Feb 19 07:24:31 GMT 2010
On Wed, 17 Feb 2010, Scott Moser wrote:
> On Wed, 17 Feb 2010, Magne Rasmussen wrote:
> > Is it possible to pass arguments to the scripts refered to by the URL in the
> > new #include type user-data? Like with Eric Hammond's runurl? This is a
> > great way to run generic scripts parameterized for the individual instance,
> > and I would love to see this functionality be available.
> No it is not possible.
> The #include really only 'includes' text. Its really to include
> additional things. I would like to have a runurl like functionality.
> I considered adding cloud-config support like:
> - [ url.com/fu a b c ]
> - [ url.bar/wark a b c ]
I just commited code to support 'runcmd' as a item in cloud-config.
This allows you to do have a cloud-config user data file that looks like
the following, and does what you would expect.
I am somewhat interested in getting runurl packaged into cloud-utils or
cloud-init so that you can skip the first 2 items in the list below.
- [ wget, -O, /usr/bin/runurl,
- [ chmod, 755, /usr/bin/runurl ]
- [ runurl, run.alestic.com/demo/echo, ======== HELLO WORLD ====== ]
- ls -l /root
More information about the Ubuntu-cloud