/srv/irclogs.ubuntu.com/2021/01/21/#cloud-init.txt

yaronr_Hi everyone. Can anyone please explain / share a reference how I could install Docker as part of cloud-config? (running Amazon Linux 2)13:53
Odd_Blokeyaronr_: What source are you looking to install Docker from?14:16
yaronr_Odd_Bloke: I finally solved the issue. I used "packages: docker.io" and should have used "packages: docker"14:22
sblkHi! I'm playing around with cloud-init and VirtualBox14:24
sblkI have some problems, for example, the instance is not taking the gateway14:25
sblkThis is the meta-data file:14:26
sblkinstance-id: iid-zpq14:26
sblknetwork-interfaces: |14:26
sblk  iface enp0s3 inet static14:26
sblk  address 192.168.79.5614:26
sblk  network 192.168.79.014:26
sblk  netmask 255.255.255.014:26
sblk  broadcast 192.168.79.25514:26
sblk  gateway 192.169.79.114:26
sblk  dns-nameservers 9.9.9.914:26
sblklocal-hostname: techier-glossa14:26
sblkThe instance takes the IP addres but not the gateway14:27
sblkAlso, I have these error messages:14:28
sblkcloud-init status --long14:28
sblkstatus: error14:28
sblktime: Thu, 21 Jan 2021 08:40:46 +000014:28
sblkdetail: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:28
sblkAny idea?14:29
sblkIf you need more information from my part, tell me so14:30
sblkshame on me, forget it about gateway...14:37
sblkI was mistyping 192.169.79.1 instead of 192.168.79.114:38
sblkBeyond of that... what about cloud-init errors?14:39
Odd_Blokeyaronr_: Glad to hear it. :)14:42
Odd_Blokesblk: 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:42
sblkOdd_Bloke thanks! nice suggestion :)14:43
sblkHere is my /var/log/cloud-init.log:14:50
sblkhttps://paste.ubuntu.com/p/sw8sWvgBsc/14:50
sblkHow to know what should be on meta-data or in user-data? For example, I've found examples with network configuration on metadata...15:33
SoftwareSheriff1is 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.html15:37
falcojrSoftwareSheriff1: I believe you're looking for this page, https://cloudinit.readthedocs.io/en/latest/topics/format.html15:45
falcojra #cloud-config file is only one type of file supported15:45
falcojrNotice on that page, the "User-Data Script" allows you to specify a shell script15:46
falcojrif you still want the cloud-config file, but also want to run arbitrary shell scripts, you're probably looking for "runcmd"15:47
falcojrhttps://cloudinit.readthedocs.io/en/latest/topics/modules.html?highlight=runcmd#runcmd15:47
SoftwareSheriff1ah; the thing i was looking for was a way to set a user's interactive shell, not run a script at startup15:48
falcojroh, whoops, I misread that "shell" remark15:49
falcojrshell is a property of users15:50
falcojrhttps://cloudinit.readthedocs.io/en/latest/topics/modules.html?highlight=shell#users-and-groups15:50
SoftwareSheriff1ah, thank you! no idea why i wasn't able to find this on that page myself lol15:59
andrewbogottIs anyone around who could merge my cla patch?  https://github.com/canonical/cloud-init/pull/77616:16
andrewbogott(or, alternately, is this the developer channel for cloud-init or is that someplace else?)16:17
falcojryou're in the right place :)16:27
falcojrsome of us are currently in meetings, but can take a look later today16:28
andrewbogottno rush!17:26
andrewbogottthanks falcojr19:53
=== vrubiolo1 is now known as vrubiolo

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