Inject user data via API

asked 2011-08-04 11:54:12 -0600

Hi,

I use the current trunk of open stack nova. Until now I started VMs using ec2tools: euca-run-instances --kernel aki-00000001 --ramdisk ari-00000002 -t m1.tiny -f /home/myname/cloud.txt ami-00000003

As you see I injected user data with the -f option and a file that is read and parsed by the guest using "cloud-init". Now I want to start instances using the API and a REST interface. I managed to start instances. But how do I inject user data? I know how to inject meta-data and a file(personality) but I can't find any option to inject user data, that's sent to "cloud-init".

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2011-08-08 15:39:59 -0600

Thanks Brian Waldon, that solved my question.

edit flag offensive delete link more
0

answered 2011-08-04 13:52:36 -0600

I'm not quite sure what you mean by 'user data', I'm not very familiar with the EC2 API. Ido have quite a bit of experience with the OS API., and I think it really only supports file injection and user metadata.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2011-08-04 11:54:12 -0600

Seen: 59 times

Last updated: Aug 08 '11