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: > runurl: > - [ 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. http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/revision/163 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. #cloud-config runcmd: - [ wget, -O, /usr/bin/runurl, "http://bazaar.launchpad.net/%7Ealestic/runurl/trunk/download/head%3A/runurl-20090817053347-o2e56z7xwq8m9tt6-1/runurl" ] - [ chmod, 755, /usr/bin/runurl ] - [ runurl, run.alestic.com/demo/echo, ======== HELLO WORLD ====== ] - ls -l /root -- Ubuntu-cloud mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-cloud
