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

=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
harlowjasmoser so what should we replace cheetah with05:24
harlowjamako seems to be a popular one05:25
harlowjathat has syntax similar (sorta) to cheetahs05:25
=== harlowja is now known as harlowja_away
smoserharlowja_away, good enough for me.15:04
smoseri think i've said before, but what i'd like is for our "version 2 templates" to basically declare themselves as vesion 215:04
smoserand if not declared as version 2 15:04
smoserthen to render in some legacy support for version 115:05
smoserie, we can do 'my $HOSTNAME'.replace("$HOSTNAME", hostname).15:05
=== harlowja_away is now known as harlowja
harlowjamy $hostname, what is this perl :-P18:10
=== shardy is now known as shardy_afk
smoserharlowja, you have a minute?18:59
defmacrohello 19:26
defmacroI'm working on getting cloud-init to run on virtualbox and docker so my setup is similar to ec2's cloud init19:27
defmacrolots of documentation and source, hard to get something working19:27
=== harlowja is now known as harlowja_away
smoserdefmacro, more info ?19:31
smoserhow are you trying ot get it to work? 19:32
defmacrotrying to make use of the nocloud and nocloudnet data source, to embed meta-data, user-data into the file-system19:33
defmacroits used only on the first image in the build chain, to consistently set up ssh keys and ubuntu user19:33
defmacroon an existing system, im experimenting by installing cloud-init in a virtualbox vagrant and trying to find how to run cloud init on the command line19:33
smoserok.19:36
defmacroi just havent found a working example yet.  reading the source 19:36
smoserthere is an examle. in doc/example/seed19:37
defmacrothank you very much19:37
smoseri started work a while ago on 'ci-tool'. your use case was one of the reasons.19:37
smoserhttp://bazaar.launchpad.net/~smoser/cloud-init/ci-tool/view/head:/ci-tool19:37
smosergive that a whilr19:37
defmacroi will.  feels good to talk to someone about cloud-init19:38
smoser./ci-tool seed -s nocloud user-data.txt meta-data.txt19:38
defmacrowhat motivated me to use cloud-init everywhere was differences in how ec2 ubuntu was created from the rest of our environments19:39
smoserwell, we certainly hav the goal of making it usable everywhere.19:39
smoserhttp://ubuntu-smoser.blogspot.com/2013/02/using-ubuntu-cloud-images-without-cloud.html19:40
smoserthat discusses how to do this with kvm and our images.19:40
smoser(ie, outside of ec2 entirely)19:40
smoserhttp://ubuntu-smoser.blogspot.com/2013/08/lxc-with-fast-cloning-via-overlayfs-and.html19:40
smoserthat one shows how to use this stuff in lxc19:40
defmacronice, will be useful when I start with docker19:41
defmacroprogress: as root, run "/usr/bin/cloud-init start-local" with seed files in /var/lib/cloud/seed/nocloud19:51
defmacroyour suggestions and strace =)19:52
smoserhm..19:52
smoserif not stat.S_ISBLK(statret.st_mode) and not stat.S_ISCHR(statret.st_mode):19:52
smoseri would have thought those 2 were mutually exclusive19:52
smoser(that was added to cloudinit/config/cc_resizefs.py in freebsd branch)19:53
smoserthe S_ISCHR19:53
smoserer... wait. its saying that char devices are ok for block device. hm..19:53
smoserdefmacro, yeah, 'ci-tool run' was supposed to basically dothings you need to do.19:54
smoserbut basically, on ubuntu, you'll run19:54
smosererr. wait. waht version is this ?19:54
defmacro12.04 precise19:55
smoserthat must be old19:55
smoserhm..19:55
smoseryeah, that is old. :)19:55
smoserbut it should work. the jobs are different.19:55
smoserbasically look in /etc/init/ for cloud*19:55
defmacrosaw those, the status is "stopped/waiting" 19:56
smoserright. here let me get you a list of stuf fto run19:56
smoser(launching a precise instance)19:56
defmacrothink im interested in cloud-init-local since that ends up running start-local19:56
=== harlowja_away is now known as harlowja
smoserdo this20:01
smosersudo start cloud-init-local20:01
smosersudo start cloud-init20:01
smosersudo start cloud-config20:01
smosersudo start cloud-final20:01
smoserdefmacro, ^20:01
smoserthe goal is for me to be able to tell you: download 'ci-tool' and run 'ci-tool run'20:01
smoserharlowja, ^20:02
smosercan you tell me why i should not filter out character devices in bsd ?20:02
smoserwhen looking for something to resize.20:02
defmacrosmoser: thanks, I'll learn how cloud-init works but using a supported tool is preferable as most of my coworkers do not want to be cloudinit experts20:05
smoserright.20:08
smoserharlowja, .... comon.20:25
harlowjain #openstack-meeting, will be done shortly 20:25
harlowja:-P20:25
harlowjama meeting, ha20:25
smoserk.20:28
smoseri just pushed up lp:~smoser/cloud-init/freebsd20:28
smoserwhich is merge from trunk back into https://code.launchpad.net/~harm-o/cloud-init/freebsd/+merge/19813020:29
smoserand a fix of a test20:29
harlowjak, back, seanwbruno 'can you tell me why i should not filter out character devices in bsd ' :-P21:03
harlowjafrom smoser ^^ ;)21:03
smoserharlowja, do you have any reason that i shouldn't just merge that ?21:07
harlowjai don't :-P21:08
smoserseanwbruno, is harm@weites.com ?21:15
harmwsmoser: thats me21:18
harmwharlowja: is that networkinterface stuff from yesterday in trunk?21:18
smoserharmw, i just merged it.21:18
smoserhttps://code.launchpad.net/~harm-o/cloud-init/freebsd/+merge/19813021:18
smoserthats yours, right ?21:18
smoseri'm fixing some things up and then will pull it into trunk.21:19
smoserone question i had.21:19
smoserwhy did you do this:21:19
smoser-        if not stat.S_ISBLK(statret.st_mode):21:19
smoser+        if not stat.S_ISBLK(statret.st_mode) and not stat.S_ISCHR(statret.st_mode):21:19
harmwyep, ~harm-o thats me21:20
harmwwhy did I do that.... better yet, why didn't I put up a comment explaining it21:21
harlowjathx for merging smoser netstuff, should help21:44
harlowjasmoser started, https://code.launchpad.net/~harlowja/cloud-init/six-2-3-compat, stupid file encoding is the biggest pain, lol21:45
harlowjapita, lol21:46
harlowjabytes type, unicode type...21:46
harlowjablah blah21:46
smoserharlowja, yeah, thats what i said i hate.21:46
harlowjathankfully we have load_file and write_file21:47
harlowjaso its somewhat contained21:47
harlowjajust annoying21:47
smoserok. bunch of stuf fmerged.21:48
harlowjacool, progress!21:49
harlowjaseanwbruno so u should be able to pull from cloud-init master now instead of harmw branch21:50
smoserharlowja, http://paste.ubuntu.com/6805336/22:05
smosermaybe better...22:05
smoserhttp://paste.ubuntu.com/6805338/22:05
smoseruser-data isn't guaranteed to be tthere22:05
harlowjakk22:05
harlowjafixing up22:05
smosergreat.22:05
harlowja5 minutes, will have fix22:12
harlowjasmoser  https://code.launchpad.net/~harlowja/cloud-init/not-found-userdata/+merge/20296322:46
defmacrosmoser: got basic cloud init in docker and virtualbox, thank you very much.23:46
defmacrobeen bugging me that my initial images were all created with different scripts; now cloud-init provides some guarantees after it has run23:51

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