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