=== shardy_afk is now known as shardy [14:11] so, I read the docs: https://cloudinit.readthedocs.org/en/latest/topics/modules.html and think i still have some questions ;-) [14:23] kwadronaut, you can ask htem here. [14:24] smoser: cheers. First question is: how can I contribute to that specific page? [14:24] its managed from code. [14:25] so you can write doc and make bzr merge request. [14:26] oh bzr. i forgot that. [14:26] which module would (re)generate ssh server keys? [14:27] (I'm using the Debian packages) [14:31] 'ssh' does that. [14:31] cloudinit/config/cc_ssh.py [14:32] thanks [14:58] hmmm i am missing the right way to have it only run once (use case: take a snapshot, boot that, don't get a new ssh-key) [14:58] kwadronaut, it should only run once. [14:58] by default [14:59] in that case, i'll compare what i changed half a year ago with the defaults. [14:59] so the way that is handled is that the default is 'PER_INSTANCE'. [15:00] the module can define *its* defualt, by defining 'frequency' in it. (cc_ssh does not do that). the values expected are one of [15:00] PER_INSTANCE = "once-per-instance" [15:00] PER_ALWAYS = "always" [15:00] PER_ONCE = "once" [15:01] and cloud-config can define a overriding value. [15:01] see example of 'cloud_config_modules' in doc/examples/cloud-config.txt [15:02] ah, but instances get a new instance-id here if you snapshot and fire up the snapshot [15:03] thanks, i'm reading [15:06] that document both has [ cloud-init-per, once, mymkfs, mkfs, /dev/vdb ] and [ apt-update-upgrade, always ] [15:06] i guess 1 way would be less confusing [16:15] kwadronaut, well, cloud-init-per is just a generic command. [16:15] that you can can put into /usr/local/bin/ scripts or whatever [16:16] and it will run the command provided according to that frequency. [16:16] it may not actually be necessary in that case any more. [16:16] but at one point bootcmd's didn't work for frequency [16:17] oh. yeah. you do need it there. [16:17] because 'bootcmd' module does run 'per_always' [16:18] but if you only want a command to run once or per-isntance, then that command has to control itself. [17:26] kwadronaut, ^ did that make sense ? [18:42] i guess so, i was getting some food and will have a closer look today or tomorrow.