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