[11:57] <ikkeT> hi, anyone succesfully using write_files ?
[11:58] <ikkeT> I tried but i always fail with it
[11:58] <ikkeT> is there any documentation about it other than: http://cloudinit.readthedocs.org/en/latest/topics/examples.html
[11:58] <ikkeT> cant get this to work:
[11:59] <ikkeT> write_files:
[11:59] <ikkeT>  - content: |
[11:59] <ikkeT>         <html> <body> <img src=kortti.jpg></img></body> </html>
[11:59] <ikkeT>     path: /var/www/index.html
[11:59] <ikkeT>     permissions: '0755'
[17:08] <smoser> ikkeT, it will only work on something recent
[17:08] <smoser> probably like 0.7.2+
[17:08] <smoser> wont work on 12.04
[17:08] <smoser> (whihc is 0.6.3)
[17:30] <mdorman> i 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?
[18:40] <harlowja> harmw yt
[18:40] <harmw> omg
[18:40] <harmw> just, like, now
[18:40] <harmw> lol
[18:41] <harlowja> trying to advice sean more on the partitioning
[18:41] <harlowja> and wanted your current advice
[18:41] <harlowja> his setup
[18:42] <harmw> lol, well, I'm by no means a fbsd addept :) but sure, shoot
[18:42] <harlowja> his layout  /dev/vda1: unknown, /dev/vda2: vfat, /dev/vda3: ufs, /dev/vda4: unknown, /dev/vda5: ufs
[18:43] <harlowja> 1 --> boot
[18:43] <harlowja> 10:40 2 --> silly cfg things
[18:43] <harlowja> 10:40 3 --> /
[18:43] <harlowja> 10:40 4 --> swap
[18:43] <harlowja> 10:40 5 --> /home
[18:43] <harlowja> so wondering what your layout is since i'm pretty sure yours works and his likely needs changes
[18:43] <harlowja> *ignore 10:40 timestamp
[18:44] <harlowja> so i think to make it work in openstack 1 -> ramdisk like file (not sure here)
[18:44] <harlowja> 2,3,4,5 collapsed (swap removed really)
[18:56] <harlowja> harmw 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 usage
[19:00] <harlowja> which would be cool
[19:03]  * harmw reads
[19:05] <harmw> ok, i've got only vda1
[19:05] <harmw> i think i've pasted that the other day
[19:05] <harmw> /dev/vtbd0p2    1.8G    1.1G    562M    68%    /
[19:05] <harmw> and thats it
[19:06] <harmw> no swap, obviously
[19:41] <harmw> vm-images, didn't know that existed :)
[19:42] <mdorman> how 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 items
[20:08] <harlowja> harmw thx, i'll let sean know about that
[20:10] <harlowja> mdorman ubuntu right?
[20:27] <mdorman> harlowja: no, centos 6 actually
[20:28] <harlowja> ah, 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 there
[20:35] <mdorman> well 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 phase
[20:35] <mdorman> vs. the later cloud-init stage
[20:40] <harlowja> so i guess a question is what is your stuff, additional scripts?
[20:40] <harlowja> scripts provided via userdata?
[20:41] <harlowja> *also i guess important what cloud-init version
[20:41] <harlowja> or since u baked it into the image its probably different scripts
[20:41] <harlowja> if its the baked in stuff, then u just need to make sure those scripts get ran before cloud-inits rc.d order does
[20:42] <harlowja> which i think is done by putting a dependency on your rc.d scripts to go before cloudinit
[20:42] <harlowja> or 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:43] <harlowja> 'Required-Start:    $local_fs $remote_fs' 
[20:47] <mdorman> ok. 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 runs
[20:47] <mdorman> i 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-data
[20:48] <mdorman> cloud-init 0.6.3, btw
[22:23] <harlowja> mdorman sorry, just got back
[22:24] <harlowja> mdorman ya, i think thats really the only way
[22:24] <harlowja> if you are baking the images then u can do this
[22:24] <mdorman> yep, everything i'm finding is pointing toward that
[22:24] <mdorman> right.
[22:24] <mdorman> just was hoping to do everything with cloud-init, so i wouldn't have to manage a service.  but, not a big deal.
[22:25] <harlowja> cloud-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 service
[22:25] <mdorman> yep
[22:25] <mdorman> thanks for the advice
[22:25] <harlowja> *which varies between operating systems