=== cpaelzer__ is now known as cpaelzer === vrubiolo1 is now known as vrubiolo [16:04] Guys, I'm leaving for my vacation, my PR will probably get stale, but I'll work on that when I'm back (which will be Jan/4th). [16:05] Happy holidays to the cloud-init family. Thanks for all the reviews :) Hope we can have fun again next year. [16:11] * rharper waves [17:09] otubo: take care! [17:09] * blackboxsw wonders about turning off our stale PR checker for the Holiday at end of next week :) should be pretty quiet around here [17:10] land everything then leave :P [17:10] good point. I'll have falcojr do that with his new commit rights :) [17:11] .... and have him plan to spend just a bit of time during his vacation fixing things :) [17:11] falcojr: landed https://github.com/canonical/pycloudlib/pull/77 [17:41] push a huge change right as I leave on Friday...what could go wrong? === ijohnson is now known as ijohnson|lunch [18:45] Greetings! [18:45] I'm working on a cloud-config to launch the stock Debian ami-070f235fd371de8e4, but I need to add a key to the admin user. [18:45] The admin user pre-exists in the image. Would the proper syntax/yaml be: [18:45] users: [18:45] - name: admin [18:45] ssh_authorized_keys: [18:45] - < key > [18:45] Would this then just UPDATE the user? [18:46] Sorry - This is on EC2... [18:46] i would say: yes [18:47] :) TY! [18:49] Cloud-init is different than ignition which is what were were using for CoreOS. Which there was a delta document. [18:49] ^^ word - Wish. === ijohnson|lunch is now known as ijohnson [22:05] hi, before i am searching for another hour... is there a solution for nocloud-net to pass in network config? i only see the ENI format [22:56] stephan48: are you attempting to pull config from remote or can you supply the nocloud datasource in the target filesystem or iso ? [22:58] remote [22:58] if you are creating a nocloud iso datasource, you can put in a network-config file where you put user-data/meta-data files ... and you can use network-config v1 or v2; note that you just need to omit the top-level 'network' key; network-config file is expected to [23:00] stephan48: I believe if you put up a network-config file where you're hosting your user-data/meta-data files it should fetch that as well [23:01] no [23:01] https://github.com/number5/cloud-init/blob/master/cloudinit/sources/DataSourceNoCloud.py#L161 and https://github.com/number5/cloud-init/blob/00dbc1447bbf8ecf611653a1af50af958ac5aeb4/cloudinit/util.py#L814 [23:02] sry should have mentioned that i looked into the code already and just wanted confirmation that i am not blind [23:02] in the debian buster version the vendor-data is not even in(did not check backports yet) [23:03] oh, usually talking upstream here ... what version is present ? [23:03] 20.2-2~deb10u1 in buster and buster-backports [23:04] strange that its the same in both dists [23:05] according to code the only source can be indeed files [23:05] but mh. [23:05] thinking about this I can integrate it [23:06] if i ditch the nocloud for local sourcing [23:06] i control the image installation after all... i am launching a debian-installer in which i do an automated full disk encrypted install [23:07] i was just hoping to run the cloud-init handling inside the running os... for no apparrent reason [23:07] network-config typically is provided at local time, to configure the networking; in some cases (datasources) we bring up ephemeral networking (ie, dhcp on an interface and attempt to fetch network config); I thought we had discussed/worked on NoCloud doing this; but I don't see that in the code though [23:07] yea [23:07] for Hetzner its in the code [23:07] y [23:07] with an Ephemeral APIPA [23:07] cloud-init is a fascinating piece of software :) [23:08] hehe, indeed [23:10] learned a shit ton the past week. i went the long way around... injecting cloud-init user data into hetzner which downloads a ipxe, that bootstraps the debian-installer for preparing the disks, all with a bit of pingpong between the Hetzner API, a small App on my side. still needs to bring up the vpn automatically throu [23:11] nice [23:12] so technically i could make the preseed generate a small partition with the cloud-init files for the finished VM and populate it at the end of setup from my API, but then i could aswell drop the required config directly into /etc/cloud/cloud.cfg.d/ as far as i understand [23:12] theres no real benefit from nocloud at that point, or am I missing something? [23:13] if you can modify the target filesystem, there's no need for the partition , no [23:13] for NoCloud, putting things at /var/lib/cloud/seed/nocloud-net/{user-data,meta-data,network-config} will do the trick; [23:14] ah nice [23:14] for some cases where the rootfs is meant to be pristine; then storing the cloudconfig on secondary filesystem or partition is helpful [23:14] yea [23:14] usually if you restore/clone from an image [23:14] you can just inject a second disk easily [23:15] but then... i don't control the hypervisor... took me some time to figure out how to tell cloud-init to ignore Hetzner [23:16] if not for the encrypted disk, i could go said cloning route here too [23:16] but i don't like having multiple VMs with the same master keys [23:17] and lets start another full reimaging run... see if i got all the last kinks out [23:18] thanks! you gave me a lot of food for my thoughts, indeed the route with populating /var/lib/cloud/seed/nocloud-net/* will probably be the easiest one [23:20] stephan48: cool [23:20] its quite fun seeing so many different software packages interacting