[Openstack] File Injection through Horizon

Atul Jha Atul.Jha at csscorp.com
Wed Oct 3 10:48:13 UTC 2012


Hi,

The test step followed for user-data as follows.

1. Got image from http://cloud-images.ubuntu.com/precise/current/precise-server-cloudimg-i386-disk1.img

2. Booted it from Horizon and passed the script in the file

#!/bin/sh
mkdir /home/ubuntu/testdir

3. Logged in to the machine with

ssh -i <mykey.pub> ubuntu at IP

And i can see the directory created.


File injection via Horizon uses cloud-init and i have tested it on Ubuntu 12.04 i have no idea about other distributions.

You can file more about cloud-init here :- https://help.ubuntu.com/community/CloudInit

And thanks, i will add this in the doc somewhere. :)

Hope it helps.


Atul jha

________________________________________
From: Shake Chen [shake.chen at gmail.com]
Sent: Wednesday, October 03, 2012 2:28 PM
To: Srikanth Kumar Lingala
Cc: Atul Jha; openstack at lists.launchpad.net
Subject: Re: [Openstack] File Injection through Horizon

I also have same question.

can you give us example. how to injection throuth Horizon?



On Wed, Oct 3, 2012 at 3:24 PM, Srikanth Kumar Lingala <srikanthkumar.lingala at gmail.com<mailto:srikanthkumar.lingala at gmail.com>> wrote:
Hi Atul,
Can you please guide me how to do File Injection through Horizon?

Regards,
Srikanth.

On Wed, Oct 3, 2012 at 12:41 PM, Atul Jha <Atul.Jha at csscorp.com<mailto:Atul.Jha at csscorp.com>> wrote:
Hi,
<snip>
I have some doubts regarding File Injection.
Can File Injection can be done through Horizon, while creating an Instance?
While creating an Instance from Horizon, a field called 'User Data' [text area] is there. Is that field is related to File Injection? Can anyone tell me, the values we need to give for 'User Data'?
</snip>
Yes.


Cheers!!

Atul Jha
http://www.csscorp.com/common/email-disclaimer.php


_______________________________________________
Mailing list: https://launchpad.net/~openstack
Post to     : openstack at lists.launchpad.net<mailto:openstack at lists.launchpad.net>
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp




--
Shake Chen

http://www.csscorp.com/common/email-disclaimer.php




More information about the Openstack mailing list