esvhey folks, I don't believe the user module includes a way to specify the desired userid of the admin/default user, is there ? 13:37
falcojresv: I think only if you override the default user with your own definition13:39
minimalyeah, have "users:\n- default\n- <their name>\n  uid: 1234\n"13:40
esvI am looking at the docs, I don't see a uid field. 13:40
minimal"uid: (integer/string) The user’s ID. Default is next available value.."13:42
falcojrminimal: your snippet will work for normal users, but not the default user, right? For the default user I think don't include '- default' and manually create the user13:43
esvI did not see the uid field in this page, https://cloudinit.readthedocs.io/en/latest/reference/examples.html , I guess the one you pointed is more relevant13:44
minimalfalcojr: I do something similar to that when I want to override some settings for the default user. Perhaps it doesn't work for a fields?13:44
minimalesv: look at the link I posted13:44
minimalthe examples page does not necessarily give examples of everything13:44
minimalfalcojr: e.g. I use that method to set the ssh_authorized_keys value for the default account13:46
falcojrminimal: the default account being the one created by cloud-init? Not "your" default?13:47
minimalfalcojr: yes13:48
minimalI guess it depends on how exactly this is handled, is the default user settings (from /etc/cloud/cloud.cfg) merged with the user-data values (I think) so before account creation13:50
minimalas the docs say "Most of these configuration options will not be honoured if the user already exists."13:50
falcojrgotcha, yeah that makes sense13:51
minimalso on Alpine Linux, where "alpine" is the default this works fine:13:52
minimal  - default13:52
minimal  - name: alpine13:52
minimal    ssh_authorized_keys:13:52
minimal      - >13:52
minimal        ssh-ed2551913:52
minimal        ......13:52
esvI'm trying to modify the uid of the default user :D13:55
minimalesv: yeah, I was just giving falcojr a general example of what works for me13:55
meenawhile waiting for some hardware to magically drop in front of me, I've been trying to get FreeBSD to work on LXD, so it could be integrated into tests at some point14:15
meenai got it to boot, https://github.com/freebsd/freebsd-src/pull/664 but the performance is abysmal, thanks to a virtio random bug, so I've been stuck in kgdb for two days14:17
-ubottu:#cloud-init- Pull 664 in freebsd/freebsd-src "apic: prevent divide by zero in CPU frequency init" [Closed]14:17
minimalmeena: a random bug with random? ;-)14:20
meenaminimal: it's been a while that I've been this deep a rabbit hole filled with yaks that all need shaving  14:33
caribouhello holmanb, first of all, thanks for your quick first pass on of https://github.com/canonical/cloud-init/pull/203314:56
-ubottu:#cloud-init- Pull 2033 in canonical/cloud-init "Adapt DataSourceScaleway to IPv6" [Open]14:56
caribouI've made sensible modifications following your suggestions/comments14:56
holmanbcaribou: welcome :)14:57
holmanbcaribou: I'll try to give it another review today14:58
caribouyou were right that using url_helper.wait_on_url() makes things sensibly simpler14:59
holmanbglad to hear it15:00
dbungertwhat would be the expected interaction if kernel command line had both cloud-config-url and ds arguments?21:24
blackboxswdbungert: hadn't thought about it, but looks like cloud-init writes out custom config file to /etc/cloud/cloud.cfg.d/91_kernel_cmdline_url.cfg https://github.com/canonical/cloud-init/blob/main/cloudinit/cmd/main.py#L29821:58
blackboxswsince files on the system override config from the datasource, I think cmdilne config wins if any config keys conflict... but I'll have to check how that's merged21:58
blackboxswand given that the /proc/cmdline  read is done before init.read_cfg() is called, the datasource detected would be able to see the config from disk during its initialization22:00

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