[13:53] <yaronr_> 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] <Odd_Bloke> yaronr_: What source are you looking to install Docker from?
[14:22] <yaronr_> Odd_Bloke: I finally solved the issue. I used "packages: docker.io" and should have used "packages: docker"
[14:24] <sblk> Hi! I'm playing around with cloud-init and VirtualBox
[14:25] <sblk> I have some problems, for example, the instance is not taking the gateway
[14:26] <sblk> This is the meta-data file:
[14:26] <sblk> instance-id: iid-zpq
[14:26] <sblk> network-interfaces: |
[14:26] <sblk>   iface enp0s3 inet static
[14:26] <sblk>   address 192.168.79.56
[14:26] <sblk>   network 192.168.79.0
[14:26] <sblk>   netmask 255.255.255.0
[14:26] <sblk>   broadcast 192.168.79.255
[14:26] <sblk>   gateway 192.169.79.1
[14:26] <sblk>   dns-nameservers 9.9.9.9
[14:26] <sblk> local-hostname: techier-glossa
[14:27] <sblk> The instance takes the IP addres but not the gateway
[14:28] <sblk> Also, I have these error messages:
[14:28] <sblk> cloud-init status --long
[14:28] <sblk> status: error
[14:28] <sblk> time: Thu, 21 Jan 2021 08:40:46 +0000
[14:28] <sblk> detail:
[14:28] <sblk> ('scripts-user', RuntimeError('Runparts: 1 failures (runcmd) in 1 attempted commands'))
[14:28] <sblk> ('ssh-authkey-fingerprints', OSError(5, 'Input/output error'))
[14:28] <sblk> ('keys-to-console', OSError(5, 'Input/output error'))
[14:29] <sblk> Any idea?
[14:30] <sblk> If you need more information from my part, tell me so
[14:37] <sblk> shame on me, forget it about gateway...
[14:38] <sblk> I was mistyping 192.169.79.1 instead of 192.168.79.1
[14:39] <sblk> Beyond of that... what about cloud-init errors?
[14:42] <Odd_Bloke> yaronr_: Glad to hear it. :)
[14:42] <Odd_Bloke> 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] <sblk> Odd_Bloke thanks! nice suggestion :)
[14:50] <sblk> Here is my /var/log/cloud-init.log:
[14:50] <sblk> https://paste.ubuntu.com/p/sw8sWvgBsc/
[15:33] <sblk> 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] <SoftwareSheriff1> 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] <falcojr> SoftwareSheriff1: I believe you're looking for this page, https://cloudinit.readthedocs.io/en/latest/topics/format.html
[15:45] <falcojr> a #cloud-config file is only one type of file supported
[15:46] <falcojr> Notice on that page, the "User-Data Script" allows you to specify a shell script
[15:47] <falcojr> if you still want the cloud-config file, but also want to run arbitrary shell scripts, you're probably looking for "runcmd"
[15:47] <falcojr> https://cloudinit.readthedocs.io/en/latest/topics/modules.html?highlight=runcmd#runcmd
[15:48] <SoftwareSheriff1> 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] <falcojr> oh, whoops, I misread that "shell" remark
[15:50] <falcojr> shell is a property of users
[15:50] <falcojr> https://cloudinit.readthedocs.io/en/latest/topics/modules.html?highlight=shell#users-and-groups
[15:59] <SoftwareSheriff1> ah, thank you! no idea why i wasn't able to find this on that page myself lol
[16:16] <andrewbogott> Is anyone around who could merge my cla patch?  https://github.com/canonical/cloud-init/pull/776
[16:17] <andrewbogott> (or, alternately, is this the developer channel for cloud-init or is that someplace else?)
[16:27] <falcojr> you're in the right place :)
[16:28] <falcojr> some of us are currently in meetings, but can take a look later today
[17:26] <andrewbogott> no rush!
[19:53] <andrewbogott> thanks falcojr