=== harlowja is now known as harlowja_away | ||
=== harlowja_away is now known as harlowja | ||
harlowja | smoser so what should we replace cheetah with | 05:24 |
---|---|---|
harlowja | mako seems to be a popular one | 05:25 |
harlowja | that has syntax similar (sorta) to cheetahs | 05:25 |
=== harlowja is now known as harlowja_away | ||
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:04 |
smoser | then to render in some legacy support for version 1 | 15:05 |
smoser | ie, we can do 'my $HOSTNAME'.replace("$HOSTNAME", hostname). | 15:05 |
=== harlowja_away is now known as harlowja | ||
harlowja | my $hostname, what is this perl :-P | 18:10 |
=== shardy is now known as shardy_afk | ||
smoser | harlowja, you have a minute? | 18:59 |
defmacro | hello | 19:26 |
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:27 |
=== harlowja is now known as harlowja_away | ||
smoser | defmacro, more info ? | 19:31 |
smoser | how are you trying ot get it to work? | 19:32 |
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:33 |
smoser | ok. | 19:36 |
defmacro | i just havent found a working example yet. reading the source | 19:36 |
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:37 |
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:38 |
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:39 |
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:40 |
defmacro | nice, will be useful when I start with docker | 19:41 |
defmacro | progress: as root, run "/usr/bin/cloud-init start-local" with seed files in /var/lib/cloud/seed/nocloud | 19:51 |
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:52 |
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:53 |
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:54 |
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:55 |
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 | 19:56 |
=== harlowja_away is now known as harlowja | ||
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:01 |
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:02 |
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:05 |
smoser | right. | 20:08 |
smoser | harlowja, .... comon. | 20:25 |
harlowja | in #openstack-meeting, will be done shortly | 20:25 |
harlowja | :-P | 20:25 |
harlowja | ma meeting, ha | 20:25 |
smoser | k. | 20:28 |
smoser | i just pushed up lp:~smoser/cloud-init/freebsd | 20:28 |
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 | 20:29 |
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:03 |
smoser | harlowja, do you have any reason that i shouldn't just merge that ? | 21:07 |
harlowja | i don't :-P | 21:08 |
smoser | seanwbruno, is harm@weites.com ? | 21:15 |
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:18 |
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:19 |
harmw | yep, ~harm-o thats me | 21:20 |
harmw | why did I do that.... better yet, why didn't I put up a comment explaining it | 21:21 |
harlowja | thx for merging smoser netstuff, should help | 21:44 |
harlowja | smoser started, https://code.launchpad.net/~harlowja/cloud-init/six-2-3-compat, stupid file encoding is the biggest pain, lol | 21:45 |
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:46 |
harlowja | thankfully we have load_file and write_file | 21:47 |
harlowja | so its somewhat contained | 21:47 |
harlowja | just annoying | 21:47 |
smoser | ok. bunch of stuf fmerged. | 21:48 |
harlowja | cool, progress! | 21:49 |
harlowja | seanwbruno so u should be able to pull from cloud-init master now instead of harmw branch | 21:50 |
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:05 |
harlowja | 5 minutes, will have fix | 22:12 |
harlowja | smoser https://code.launchpad.net/~harlowja/cloud-init/not-found-userdata/+merge/202963 | 22:46 |
defmacro | smoser: got basic cloud init in docker and virtualbox, thank you very much. | 23:46 |
defmacro | been bugging me that my initial images were all created with different scripts; now cloud-init provides some guarantees after it has run | 23:51 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!