Re: Cloudstack user-data empty for VMs

2013-12-05 Thread David Nalley
On Wed, Dec 4, 2013 at 11:38 PM, Derek Cole wrote: > I will see what I can do. I dont have a github presently, but since I am > mostly working with FreeBSD I had to fix puppet's service resource, jason > hancocks section that look for dhcp leases and a couple of other things. > The userdata fix I

Re: Cloudstack user-data empty for VMs

2013-12-04 Thread Derek Cole
I will see what I can do. I dont have a github presently, but since I am mostly working with FreeBSD I had to fix puppet's service resource, jason hancocks section that look for dhcp leases and a couple of other things. The userdata fix I put in seems to be working, though not when the puppet agent

Re: Cloudstack user-data empty for VMs

2013-12-04 Thread David Nalley
Yeah - it's definitely a work in progress - if you look at Dan Bode's cloudstack_resources, he actually has a ton of additional work in a different branch that hasn't yet been validated. It's on my list to get around to that in the next few weeks. What you likely saw (esp if it was my presentation)

Re: Cloudstack user-data empty for VMs

2013-12-04 Thread Derek Cole
Well I started to post about getting something broken. I modified cloudstack_resources to take an argument for userdata. I was getting all kinds of issues with that, until I realized that the argument in userdata has to be base64 encoded. I fixed that, and now my VMs can get their metadata! I had s

Re: Cloudstack user-data empty for VMs

2013-12-04 Thread Carlos ReƔtegui
What you want to do should work. Not familiar with cloudstack_resources. Does it have a means to set user data when creating an instance? If so, have you checked the user data manually (ie querying the vr/dhcp server) to see that it was set? > On Dec 4, 2013, at 3:19 PM, Derek Cole wrote: >

Re: Cloudstack user-data empty for VMs

2013-12-04 Thread Derek Cole
Hrmm - Maybe I am not being exactly clear. I originally started out trying to use puppet to not only configure my VMs, but provision them in the cloud as well. I started out with a template in cloudstack, and have been using cloudstack_resources to create new VMs automatically when my puppet manif

Re: Cloudstack user-data empty for VMs

2013-12-04 Thread Hiroki Ohashi
Hi Derek When you use user-data, you have to provide user-data and deliver it to virtual router. Unfortunately, CloudStack only provides REST API to deliver user-data to virtual router now. This API is deployVirtualMachine that creates instance and set instance specific data. For example, I assum

Re: Cloudstack user-data empty for VMs

2013-12-04 Thread Derek Cole
I was kind of wondering about that, when I saw it earlier. It appears that maybe the cloudstack_resources module has become out of date? I think you are the preparer of a slide-show I was following here: http://www.slideshare.net/PuppetLabs/cloudstack-18489665 It seems like in those slides, Group

Re: Cloudstack user-data empty for VMs

2013-12-04 Thread David Nalley
Hi Derek: Glad that the puppet resources are useful. Setting user-data is different than setting group: Look at the options here: http://cloudstack.apache.org/docs/api/apidocs-4.2/user/deployVirtualMachine.html --David On Wed, Dec 4, 2013 at 11:54 AM, Derek Cole wrote: > Hello, > > I am attem

Cloudstack user-data empty for VMs

2013-12-04 Thread Derek Cole
Hello, I am attempting to use the cloudstack API to get user-data for my VMs. I am creating the VMs with the puppet cloudstack-resources module, and it seems to populate it (From the cloudstack GUI, under "Group" I see my data) However, when I do a wget http://router/latest/user-data I get bac