Jump to: navigation, search

Difference between revisions of "Userdata-examples"

Line 2: Line 2:
 
If your openstack cloud supports metadata, here are some sample userdata snippets you can use with UEC images (or any image that has cloud-init)
 
If your openstack cloud supports metadata, here are some sample userdata snippets you can use with UEC images (or any image that has cloud-init)
  
'''install devstack''' - put some stack in your stack ''uec-natty''
+
https://gist.github.com/1279047
 
 
<pre><nowiki>
 
#!/bin/sh
 
apt-get update
 
apt-get install git -y
 
git clone https://github.com/cloudbuilders/devstack.git
 
cd devstack
 
echo ADMIN_PASSWORD=stack4eva >> localrc
 
echo MYSQL_PASS=mysql4eva >> localrc
 
echo RABBIT_PASS=rabbit4eva >> localrc
 
echo FLAT_INTERFACE=br100 >> localrc
 
echo SERVICE_TOKEN=12345678901234567890 >> localrc
 
./stack.sh
 
</nowiki></pre>
 
 
 
 
 
'''install cloudfoundry''' - work in progress ''uec-natty''
 
 
 
<pre><nowiki>
 
#!/bin/sh
 
cd /mnt
 
curl -k -O https://raw.github.com/anotherjesse/vcap/auto/setup/install
 
chmod +x install
 
./install
 
ln -s /usr/local/rvm/bin/ruby /usr/local/bin/
 
cd /cloudfoundry
 
bin/vcap start
 
</nowiki></pre>
 

Revision as of 19:00, 11 October 2011

If your openstack cloud supports metadata, here are some sample userdata snippets you can use with UEC images (or any image that has cloud-init)

https://gist.github.com/1279047