[13:53] Hi everyone. Can anyone please explain / share a reference how I could install Docker as part of cloud-config? (running Amazon Linux 2) [14:16] yaronr_: What source are you looking to install Docker from? [14:22] Odd_Bloke: I finally solved the issue. I used "packages: docker.io" and should have used "packages: docker" [14:24] Hi! I'm playing around with cloud-init and VirtualBox [14:25] I have some problems, for example, the instance is not taking the gateway [14:26] This is the meta-data file: [14:26] instance-id: iid-zpq [14:26] network-interfaces: | [14:26]   iface enp0s3 inet static [14:26]   address 192.168.79.56 [14:26]   network 192.168.79.0 [14:26]   netmask 255.255.255.0 [14:26]   broadcast 192.168.79.255 [14:26]   gateway 192.169.79.1 [14:26]   dns-nameservers 9.9.9.9 [14:26] local-hostname: techier-glossa [14:27] The instance takes the IP addres but not the gateway [14:28] Also, I have these error messages: [14:28] cloud-init status --long [14:28] status: error [14:28] time: Thu, 21 Jan 2021 08:40:46 +0000 [14:28] detail: [14:28] ('scripts-user', RuntimeError('Runparts: 1 failures (runcmd) in 1 attempted commands')) [14:28] ('ssh-authkey-fingerprints', OSError(5, 'Input/output error')) [14:28] ('keys-to-console', OSError(5, 'Input/output error')) [14:29] Any idea? [14:30] If you need more information from my part, tell me so [14:37] shame on me, forget it about gateway... [14:38] I was mistyping 192.169.79.1 instead of 192.168.79.1 [14:39] Beyond of that... what about cloud-init errors? [14:42] yaronr_: Glad to hear it. :) [14:42] sblk: If you're pasting multiple lines, please use a pastebin (e.g. https://paste.ubuntu.com/). And if you could pastebin /var/log/cloud-init.log, that will make debugging your issues much easier. :) [14:43] Odd_Bloke thanks! nice suggestion :) [14:50] Here is my /var/log/cloud-init.log: [14:50] https://paste.ubuntu.com/p/sw8sWvgBsc/ [15:33] How to know what should be on meta-data or in user-data? For example, I've found examples with network configuration on metadata... [15:37] is there an exhaustive list of things allowed in the cloud config file? i see a bunch of blogs saying `shell` is an attribute on `user`s but there isn't any example at this link that has `shell` in it: https://cloudinit.readthedocs.io/en/latest/topics/examples.html [15:45] SoftwareSheriff1: I believe you're looking for this page, https://cloudinit.readthedocs.io/en/latest/topics/format.html [15:45] a #cloud-config file is only one type of file supported [15:46] Notice on that page, the "User-Data Script" allows you to specify a shell script [15:47] if you still want the cloud-config file, but also want to run arbitrary shell scripts, you're probably looking for "runcmd" [15:47] https://cloudinit.readthedocs.io/en/latest/topics/modules.html?highlight=runcmd#runcmd [15:48] ah; the thing i was looking for was a way to set a user's interactive shell, not run a script at startup [15:49] oh, whoops, I misread that "shell" remark [15:50] shell is a property of users [15:50] https://cloudinit.readthedocs.io/en/latest/topics/modules.html?highlight=shell#users-and-groups [15:59] ah, thank you! no idea why i wasn't able to find this on that page myself lol [16:16] Is anyone around who could merge my cla patch? https://github.com/canonical/cloud-init/pull/776 [16:17] (or, alternately, is this the developer channel for cloud-init or is that someplace else?) [16:27] you're in the right place :) [16:28] some of us are currently in meetings, but can take a look later today [17:26] no rush! [19:53] thanks falcojr === vrubiolo1 is now known as vrubiolo