/srv/irclogs.ubuntu.com/2014/01/31/#cloud-init.txt

=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
=== harlowja is now known as harlowja_away
zenloopDoes anyone here have experience building amis from scratch?06:53
=== shardy_afk is now known as shardy
yacocoI'm trying to write custom handler for cloud-init, in order to boot images on my machine without using EC209:59
yacocoThis is the best article I got my hands on: http://foss-boss.blogspot.com/2011/01/advanced-cloud-init-custom-handlers.html09:59
yacocobut the script listed there is no more available in the repo10:00
yacocoIs there a new/better way to achieve that and most importantly is it documented somewhere?10:00
yacocoanyone?10:51
=== harlowja_away is now known as harlowja
zenloopHey guys, can anyone tell me how cloud-init works with the init system?  When I install it I do not see cloud-init in /etc/init.d.18:01
harlowjazenloop depending on the system u are using (upstart, sysvinit, systemd) u'll need to take the corresponding scripts19:15
harlowjazenloop since u mentioned upstart, http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/files/head:/upstart/19:15
harlowjathe others are in http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/files (systemd, sysviinit)19:15
harmwharlowja: any news from your Y! colleague on putting cloud-init in fbsd ports?20:54
harlowjaharmw talked with him a little this week, still getting sucked into mail stuff apparently, so hasn't had the time yet21:05
harmwyea, read something regarding hackers21:06
harmwbut fair enough :)21:06
harlowjaharmw ssl i think21:09
harlowjanot sure what the current stuff/issues are though21:09
harmwbah, ssl21:09
harmwwhat on earth is wrong with plaintext21:09
harlowjansa21:10
harlowjalol21:10
harlowjanuff said21:10
harlowjaha21:10
harmwit's not that UPS encrypts my packages before sending them21:10
harmw:p21:10
harlowjai'll ping him on monday to see where's he's at, seems away on IM right now21:11
harlowjamaybe he'll be freed up21:11
harmwyea sure, np21:11
dgarstang1Question... stuff in /var/lib/cloud/seed/nocloud-net/meta-data .... how does cloud init scripts access it?23:34
harlowjadgarstang1 what do u mean?23:35
harlowjawhich type of init scripts23:35
dgarstang1harlowja: If I have foo: bar in /var/lib/cloud/seed/nocloud-net/meta-data, how do I get that in a cloud-init script?23:36
harlowjais it a bash script?23:36
dgarstang1harlowja: no, in cloud init23:36
harlowjajust read it i guess?23:36
harlowjawhere in cloud-init i guess is the question23:36
dgarstang1in runcmd or bootcm23:37
dgarstang1bootcmd23:37
dgarstang1i'm guessing I cant23:37
dgarstang1so, I fail to see the point of it to cloudinit23:37
harlowjathose just run shell scripts, so just read it in, cat '/var/lib/cloud/seed/nocloud-net/meta-data'23:37
dgarstang1i was hoping it was a little more magic than that23:37
harlowjabootcmd and runcmd just run basic scripts23:38
dgarstang1harlowja: yah so I wanted to use the value in meta-data to set the host name23:38
harlowjaa cloud-init script should already be doing that23:38
harlowja*cloud-init plugin23:38
dgarstang1harlowja: not on google compute it's not23:38
harlowjaah, k, idk what they did to there metadata then23:39
dgarstang1dont think that ever worked for us in ec2 either23:39
dgarstang1didn't know that even existed. docs are bad23:39
harlowjahttp://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/cloudinit/config/cc_set_hostname.py 23:39
dgarstang1harlowja: in any case, doesn't work in gce, so can't use23:39
harlowjahmmm, u are building images though right + your own cloud-init, so why can't a new script then be made that does work?23:40
harlowjajust patch cc_set_hostname.py if u really want i guess23:40
dgarstang1i had it in a cloud init script but supposedly that wasn't the best way, it was suggested I should be depositing it in /var/lib/cloud.23:40
dgarstang1harlowja: there is no data source for gce23:41
harlowjak, hmmm, odd23:41
dgarstang1and then reading it from the meta data file. But, if I do that I have to read it again anyway, so it's pointless23:41
dgarstang1so, I might as well just keep as it is, ie put a curl in the cloud init script to read it from the gce metadata server23:42
harlowjaah, so gce does have a metadata server23:42
dgarstang1yep23:42
harlowjaseems like then it could have a datasource23:42
harlowjawanna make one ;)23:43
dgarstang1http://cloudinit.readthedocs.org/en/latest/topics/datasources.html .... nope23:43
dgarstang1nah not me23:43
harlowjadurn23:43
dgarstang1theres a patch kicking around somewhere to add it, but it won't work with the current version of cloud init, and the newer version of cloud init that has it won't install on ubuntu precise23:44
harlowjahmmm, ya, then i guess it will have to be sorta hacky like this without that23:45
harlowjatell GCE people to submit the patch in cloud-init, lo23:45
harlowjadamn google folks23:45
* harlowja works at yahoo, lol23:47
dgarstang1harlowja: it is in cloud-init, latest version, which has dependancies on packages that aren't available in 12.04 ubuntu23:48
harlowjainterersting, there is GCE datasource in cloud-init?23:48
dgarstang1harlowja: latest version, yes... it's in debian experimental23:49
harlowjainteresting, wonder where it is, don't see it @ http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/files/head:/cloudinit/sources/23:49
harlowjaweird, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=72538423:51
harlowja'We're currently discussing how this code might be submitted upstream, the23:51
harlowjadiscussions might take a while.'23:51
harlowjasmoser have u seen that :-/ odd23:51
dgarstang1harlowja: I saw something where someone said it had been added to debian experimental23:52
harlowjaya23:52
harlowjawonder where it went after that23:52
harlowjadgarstang1 another way around it, since u are building your own images, is to just update the missing 12.04 dependency23:53
* harlowja not sure which dependency it is though23:53
dgarstang1harlowja: except I could not get the cloud init from experimental to install on 12,0423:53
harlowjahow about from source?23:53
dgarstang1oh, i forget the details... i do remember it was nasty tho23:53
harlowjapython setup.py install?23:54
dgarstang1harlowja: the package from debian experimental, had some dependancies on packages available in raring or something23:54
dgarstang1yuck23:54
harlowjaif u are already building your own images, hopefully not so yucky, not ideal i agree23:54
dgarstang1wouldn't have to if google provided ubuntu images. grrr.... or canonical maybe23:55
harlowjaif u know what the dependency was it might actually be invalid (if its not a datasource u are going to use)23:55
dgarstang1mebbe23:55
harlowjathere are certain dependencies that are datasource specific (like pyserial)23:55
harlowjabut uaren't using that anyway23:55
dgarstang1for now, no data source seems to work ok. 23:56
harlowjathe distros of course though have to include them all, since they don't know who will use it23:56
harlowjak23:56

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!