=== harlowja is now known as harlowja_away === harlowja_away is now known as harlowja [05:24] smoser so what should we replace cheetah with [05:25] mako seems to be a popular one [05:25] that has syntax similar (sorta) to cheetahs === harlowja is now known as harlowja_away [15:04] harlowja_away, good enough for me. [15:04] i think i've said before, but what i'd like is for our "version 2 templates" to basically declare themselves as vesion 2 [15:04] and if not declared as version 2 [15:05] then to render in some legacy support for version 1 [15:05] ie, we can do 'my $HOSTNAME'.replace("$HOSTNAME", hostname). === harlowja_away is now known as harlowja [18:10] my $hostname, what is this perl :-P === shardy is now known as shardy_afk [18:59] harlowja, you have a minute? [19:26] hello [19:27] I'm working on getting cloud-init to run on virtualbox and docker so my setup is similar to ec2's cloud init [19:27] lots of documentation and source, hard to get something working === harlowja is now known as harlowja_away [19:31] defmacro, more info ? [19:32] how are you trying ot get it to work? [19:33] trying to make use of the nocloud and nocloudnet data source, to embed meta-data, user-data into the file-system [19:33] its used only on the first image in the build chain, to consistently set up ssh keys and ubuntu user [19:33] on 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 line [19:36] ok. [19:36] i just havent found a working example yet. reading the source [19:37] there is an examle. in doc/example/seed [19:37] thank you very much [19:37] i started work a while ago on 'ci-tool'. your use case was one of the reasons. [19:37] http://bazaar.launchpad.net/~smoser/cloud-init/ci-tool/view/head:/ci-tool [19:37] give that a whilr [19:38] i will. feels good to talk to someone about cloud-init [19:38] ./ci-tool seed -s nocloud user-data.txt meta-data.txt [19:39] what motivated me to use cloud-init everywhere was differences in how ec2 ubuntu was created from the rest of our environments [19:39] well, we certainly hav the goal of making it usable everywhere. [19:40] http://ubuntu-smoser.blogspot.com/2013/02/using-ubuntu-cloud-images-without-cloud.html [19:40] that discusses how to do this with kvm and our images. [19:40] (ie, outside of ec2 entirely) [19:40] http://ubuntu-smoser.blogspot.com/2013/08/lxc-with-fast-cloning-via-overlayfs-and.html [19:40] that one shows how to use this stuff in lxc [19:41] nice, will be useful when I start with docker [19:51] progress: as root, run "/usr/bin/cloud-init start-local" with seed files in /var/lib/cloud/seed/nocloud [19:52] your suggestions and strace =) [19:52] hm.. [19:52] if not stat.S_ISBLK(statret.st_mode) and not stat.S_ISCHR(statret.st_mode): [19:52] i would have thought those 2 were mutually exclusive [19:53] (that was added to cloudinit/config/cc_resizefs.py in freebsd branch) [19:53] the S_ISCHR [19:53] er... wait. its saying that char devices are ok for block device. hm.. [19:54] defmacro, yeah, 'ci-tool run' was supposed to basically dothings you need to do. [19:54] but basically, on ubuntu, you'll run [19:54] err. wait. waht version is this ? [19:55] 12.04 precise [19:55] that must be old [19:55] hm.. [19:55] yeah, that is old. :) [19:55] but it should work. the jobs are different. [19:55] basically look in /etc/init/ for cloud* [19:56] saw those, the status is "stopped/waiting" [19:56] right. here let me get you a list of stuf fto run [19:56] (launching a precise instance) [19:56] think im interested in cloud-init-local since that ends up running start-local === harlowja_away is now known as harlowja [20:01] do this [20:01] sudo start cloud-init-local [20:01] sudo start cloud-init [20:01] sudo start cloud-config [20:01] sudo start cloud-final [20:01] defmacro, ^ [20:01] the goal is for me to be able to tell you: download 'ci-tool' and run 'ci-tool run' [20:02] harlowja, ^ [20:02] can you tell me why i should not filter out character devices in bsd ? [20:02] when looking for something to resize. [20:05] smoser: 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 experts [20:08] right. [20:25] harlowja, .... comon. [20:25] in #openstack-meeting, will be done shortly [20:25] :-P [20:25] ma meeting, ha [20:28] k. [20:28] i just pushed up lp:~smoser/cloud-init/freebsd [20:29] which is merge from trunk back into https://code.launchpad.net/~harm-o/cloud-init/freebsd/+merge/198130 [20:29] and a fix of a test [21:03] k, back, seanwbruno 'can you tell me why i should not filter out character devices in bsd ' :-P [21:03] from smoser ^^ ;) [21:07] harlowja, do you have any reason that i shouldn't just merge that ? [21:08] i don't :-P [21:15] seanwbruno, is harm@weites.com ? [21:18] smoser: thats me [21:18] harlowja: is that networkinterface stuff from yesterday in trunk? [21:18] harmw, i just merged it. [21:18] https://code.launchpad.net/~harm-o/cloud-init/freebsd/+merge/198130 [21:18] thats yours, right ? [21:19] i'm fixing some things up and then will pull it into trunk. [21:19] one question i had. [21:19] why did you do this: [21:19] - if not stat.S_ISBLK(statret.st_mode): [21:19] + if not stat.S_ISBLK(statret.st_mode) and not stat.S_ISCHR(statret.st_mode): [21:20] yep, ~harm-o thats me [21:21] why did I do that.... better yet, why didn't I put up a comment explaining it [21:44] thx for merging smoser netstuff, should help [21:45] smoser started, https://code.launchpad.net/~harlowja/cloud-init/six-2-3-compat, stupid file encoding is the biggest pain, lol [21:46] pita, lol [21:46] bytes type, unicode type... [21:46] blah blah [21:46] harlowja, yeah, thats what i said i hate. [21:47] thankfully we have load_file and write_file [21:47] so its somewhat contained [21:47] just annoying [21:48] ok. bunch of stuf fmerged. [21:49] cool, progress! [21:50] seanwbruno so u should be able to pull from cloud-init master now instead of harmw branch [22:05] harlowja, http://paste.ubuntu.com/6805336/ [22:05] maybe better... [22:05] http://paste.ubuntu.com/6805338/ [22:05] user-data isn't guaranteed to be tthere [22:05] kk [22:05] fixing up [22:05] great. [22:12] 5 minutes, will have fix [22:46] smoser https://code.launchpad.net/~harlowja/cloud-init/not-found-userdata/+merge/202963 [23:46] smoser: got basic cloud init in docker and virtualbox, thank you very much. [23:51] been bugging me that my initial images were all created with different scripts; now cloud-init provides some guarantees after it has run