/srv/irclogs.ubuntu.com/2013/12/20/#cloud-init.txt

=== harlowja is now known as harlowja_away
ikkeThi, anyone succesfully using write_files ?11:57
ikkeTI tried but i always fail with it11:58
ikkeTis there any documentation about it other than: http://cloudinit.readthedocs.org/en/latest/topics/examples.html11:58
ikkeTcant get this to work:11:58
ikkeTwrite_files:11:59
ikkeT - content: |11:59
ikkeT        <html> <body> <img src=kortti.jpg></img></body> </html>11:59
ikkeT    path: /var/www/index.html11:59
ikkeT    permissions: '0755'11:59
smoserikkeT, it will only work on something recent17:08
smoserprobably like 0.7.2+17:08
smoserwont work on 12.0417:08
smoser(whihc is 0.6.3)17:08
mdormani have an image with some cloud-init config stuff baked in to /etc/cloud/cloud.cfg.d  It works great when instances are launched from it.  however, if there is any user-data provided to the vm, then only the user-data stuff gets run by cloud-init, not the baked in stuff.  is there some config i need to make sure they both run?  and ideall, the baked in stuff runs first?17:30
=== shardy is now known as shardy_afk
=== harlowja_away is now known as harlowja
harlowjaharmw yt18:40
harmwomg18:40
harmwjust, like, now18:40
harmwlol18:40
harlowjatrying to advice sean more on the partitioning18:41
harlowjaand wanted your current advice18:41
harlowjahis setup18:41
harmwlol, well, I'm by no means a fbsd addept :) but sure, shoot18:42
harlowjahis layout  /dev/vda1: unknown, /dev/vda2: vfat, /dev/vda3: ufs, /dev/vda4: unknown, /dev/vda5: ufs18:42
harlowja1 --> boot18:43
harlowja10:40 2 --> silly cfg things18:43
harlowja10:40 3 --> /18:43
harlowja10:40 4 --> swap18:43
harlowja10:40 5 --> /home18:43
harlowjaso wondering what your layout is since i'm pretty sure yours works and his likely needs changes18:43
harlowja*ignore 10:40 timestamp18:43
harlowjaso i think to make it work in openstack 1 -> ramdisk like file (not sure here)18:44
harlowja2,3,4,5 collapsed (swap removed really)18:44
harlowjaharmw so i think if sean figures this out he might know who to talk to to get ftp://ftp.freebsd.org/pub/FreeBSD/snapshots/VM-IMAGES/11.0-CURRENT/amd64/Latest/ adjusted for cloud usage18:56
harlowjawhich would be cool19:00
* harmw reads19:03
harmwok, i've got only vda119:05
harmwi think i've pasted that the other day19:05
harmw/dev/vtbd0p2    1.8G    1.1G    562M    68%    /19:05
harmwand thats it19:05
harmwno swap, obviously19:06
harmwvm-images, didn't know that existed :)19:41
mdormanhow can i configure something to run during the cloud-init "local" stage.  i have some items baked in to my image that i want to run before anything that comes from user-data.  the cloud-init phase runs the user-data stuff before the locallyconfigred items19:42
harlowjaharmw thx, i'll let sean know about that20:08
harlowjamdorman ubuntu right?20:10
mdormanharlowja: no, centos 6 actually20:27
harlowjaah, hmmm, so if u want something to run before cloud-init local, then u need to jump into rc.d i think and make a corresponding script there20:28
mdormanwell i'm fine with my stuff running in clout-init local, i'm just having a hard time figuring out how to actually configre it to run in the local phase20:35
mdormanvs. the later cloud-init stage20:35
harlowjaso i guess a question is what is your stuff, additional scripts?20:40
harlowjascripts provided via userdata?20:40
harlowja*also i guess important what cloud-init version20:41
harlowjaor since u baked it into the image its probably different scripts20:41
harlowjaif its the baked in stuff, then u just need to make sure those scripts get ran before cloud-inits rc.d order does20:41
harlowjawhich i think is done by putting a dependency on your rc.d scripts to go before cloudinit20:42
harlowjaor u can adjust http://bazaar.launchpad.net/~cloud-init-dev/cloud-init/trunk/view/head:/sysvinit/redhat/cloud-init-local#L27 (and make cloud-init-local depend on your scripts running)20:42
harlowja'Required-Start:    $local_fs $remote_fs' 20:43
mdormanok. yeah.  i mean my baked in stuff are just a couple things to set up some custom AD auth stuff, and register the vm into spacewalk.  both things we want to have happen before anything from user-data runs20:47
mdormani really wanted to avoid having a custom rc script to do that, but sounds like that might be the only wya to make sure it goes before user-data20:47
mdormancloud-init 0.6.3, btw20:48
=== harlowja is now known as harlowja_away
=== harlowja_away is now known as harlowja
harlowjamdorman sorry, just got back22:23
harlowjamdorman ya, i think thats really the only way22:24
harlowjaif you are baking the images then u can do this22:24
mdormanyep, everything i'm finding is pointing toward that22:24
mdormanright.22:24
mdormanjust was hoping to do everything with cloud-init, so i wouldn't have to manage a service.  but, not a big deal.22:24
harlowjacloud-init will run user-scripts, but it doesn't have the concept (afaik) of running image-based scripts, excepts u afaik to just use the system service22:25
mdormanyep22:25
mdormanthanks for the advice22:25
harlowja*which varies between operating systems22:25

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