← Back to team overview

openstack team mailing list archive

Re: File Injection through Horizon

 

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@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@xxxxxxxxx]
Sent: Wednesday, October 03, 2012 2:28 PM
To: Srikanth Kumar Lingala
Cc: Atul Jha; openstack@xxxxxxxxxxxxxxxxxxx
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@xxxxxxxxx<mailto:srikanthkumar.lingala@xxxxxxxxx>> 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@xxxxxxxxxxx<mailto:Atul.Jha@xxxxxxxxxxx>> 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@xxxxxxxxxxxxxxxxxxx<mailto:openstack@xxxxxxxxxxxxxxxxxxx>
Unsubscribe : https://launchpad.net/~openstack
More help   : https://help.launchpad.net/ListHelp




--
Shake Chen

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


Follow ups

References