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

Wiki: userdata-examples (last edited 2011-10-11 19:00:00 by JesseAndrews)