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_Bloke | yaronr_: 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 |
sblk | Hi! I'm playing around with cloud-init and VirtualBox | 14:24 |
sblk | I have some problems, for example, the instance is not taking the gateway | 14:25 |
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:26 |
sblk | The instance takes the IP addres but not the gateway | 14:27 |
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:28 |
sblk | Any idea? | 14:29 |
sblk | If you need more information from my part, tell me so | 14:30 |
sblk | shame on me, forget it about gateway... | 14:37 |
sblk | I was mistyping 192.169.79.1 instead of 192.168.79.1 | 14:38 |
sblk | Beyond of that... what about cloud-init errors? | 14:39 |
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:42 |
sblk | Odd_Bloke thanks! nice suggestion :) | 14:43 |
sblk | Here is my /var/log/cloud-init.log: | 14:50 |
sblk | https://paste.ubuntu.com/p/sw8sWvgBsc/ | 14:50 |
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:33 |
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:37 |
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:45 |
falcojr | Notice on that page, the "User-Data Script" allows you to specify a shell script | 15:46 |
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:47 |
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:48 |
falcojr | oh, whoops, I misread that "shell" remark | 15:49 |
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:50 |
SoftwareSheriff1 | ah, thank you! no idea why i wasn't able to find this on that page myself lol | 15:59 |
andrewbogott | Is anyone around who could merge my cla patch? https://github.com/canonical/cloud-init/pull/776 | 16:16 |
andrewbogott | (or, alternately, is this the developer channel for cloud-init or is that someplace else?) | 16:17 |
falcojr | you're in the right place :) | 16:27 |
falcojr | some of us are currently in meetings, but can take a look later today | 16:28 |
andrewbogott | no rush! | 17:26 |
andrewbogott | thanks falcojr | 19:53 |
=== vrubiolo1 is now known as vrubiolo |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!