/srv/irclogs.ubuntu.com/2022/09/30/#cloud-init.txt

meenahttps://github.com/canonical/cloud-init/pull/176010:33
ubottuPull 1760 in canonical/cloud-init "Style: use relative imports" [Open]10:33
meenaam i seeing this right, that azure is the only thing that uses the blacklisted drivers? 19:18
blackboxswmeena: yes I think that is the case19:22
meenaThis https://github.com/canonical/cloud-init/pull/1759 is now as finished as it will be without https://bugs.launchpad.net/cloud-init/+bug/199102421:26
ubottuPull 1759 in canonical/cloud-init "cc_ntp: add support for BSDs" [Open]21:26
ubottuLaunchpad bug 1991024 in cloud-init "distros/manage_service: add support to disable services" [Undecided, Triaged]21:26
meenawill also need tests I guess…21:26
meenawhat's missing for https://github.com/canonical/cloud-init/pull/1758 to be merged, btw? 21:27
ubottuPull 1758 in canonical/cloud-init "Distro manage service: Add OpenBSD support" [Open]21:27
holmanmeena: +1 for an eye towards platform independence in planned work22:20
holmanmeena: saves us all future rework, many thanks :D22:20
* meena has been platform independent since she started working on Solaris in her first job…22:21
holmannice :)22:24
meenaanyone here got a sysv-init system that's… not a BSD?22:24
meenaI just realized that sysvinit maps `                "enable": [service, "start"],`, which is not the case on BSDs… where… enable is…enable.22:25
holmanmeena: I helped decommission some old rhel v5 boxes once upon a time, I assume that's the closest I've gotten to sysvinit (besides firing up bsd vms)22:26
meenaholman: hah22:27
meenai was gonna ask minimal, but now he's gone22:30
sam_they aer bac22:30
sam_k22:30
sam_they are back22:30
minimalmeena: Hi, dodgy connection here lol22:32
meenaminimal: does alpine's "service" have an "enable" / "disable" ?22:32
minimalmeena: I don't believe so. Alpine uses OpenRC rather than sysvinit and "service" is a softlink to OpenRC's "rc-service"22:41
minimalif you're referring to adding a service to a runlevel that would be "rc-update add <service> <runlevel>"22:43
meenaminimal: so service enable <foo> won't do anything22:45
meenain that case, I might just extend manage_service in FreeBSD23:01
minimal"service enable rngd": "service: service 'enable' does not exist"23:01
minimal"service rngd enable": "rngd: unknown function 'enable'"23:02
meenaminimal: aye, thanks23:02
meenahttps://github.com/canonical/cloud-init/pull/1758 ← I'll probably just do that after this PR is merged23:02
ubottuPull 1758 in canonical/cloud-init "Distro manage service: Add OpenBSD support" [Open]23:03
minimalmeena: in cloudinit/distros/alpine.py: init_cmd = ["rc-service"] so I don't know if it ever uses "service" rather than "rc-service" anyway23:05
meenaminimal: but that still means it can't enable/disable services…23:05
meenaanyway, bed time now.23:06
minimalmeena: I've never tried or needed to to enable/disable a service in cloud-init config23:08
meenaminimal: most linux systems enable a service if you install it, or?23:10
meenaright, i wanted to goto bed.23:12
minimalmeena: it depends. With Alpine, nope, packages don't enabled their services automatically just because they are installed23:14
meenaminimal: so if someone was to extend the rsyslogd module to support alpine, they would need an enable/disable thingy23:16
minimalmeena: cloud-init's rsyslog module already works with alpine, I use it myself23:16
minimalI enable the rsyslog service as part of building an Alpine disk image containing cloud-init23:17
minimalin the same way I enable chrony service as well23:17
meenahttps://github.com/canonical/cloud-init/blob/main/cloudinit/config/cc_rsyslog.py#L3623:18
meenameena: but that means you also disable the busybox syslogd?23:18
meenaso all cloud-init is doing is putting a config file in place…23:18
minimalmeena: nope, I don't disable busybox syslogd as it would be enabled if I'd enabled in the first place ;-)23:19
minimals/be enabled/only be enabled/23:19
meenaaye23:20
minimalmy opinion of creating a cloud-init disk image (whether Alpine or something else) is that it is more involved that just installing cloud-init onto an existing OS disk image - there may be work to remove some files with config that shouldn't be present (i.e. hostname/domain/IP info), there will be installation of some basis services like NTP, Syslogd, and SSHd (only openssh for now but I'd like to add dropbear and tinyssh support in the future)23:21
minimals/basis/basic/23:22
meenaI don't disagree, I'd just like some modules to be a little more versatile…23:23
meenabasically, there's nothing wrong with FreeBSD's syslog, but if someone wants to use rsyslog it would be cool if they could just try it23:23
minimalmeena: you're expecting Chrony or Busybox ntpd, or Syslogd / Rsyslog to be installed during cloud-init's run?23:24
meenaand then in their next iteration, they could then just build the image with syslogd disabled and rsyslogd installed and enabled, and cloud-init just does the config23:24
meenaminimal: the ntp module installs chrony or ntp/d or whatnot, the rsyslogd module does… who knows what23:25
meenait puts a config file somewhere and restarts a service23:25
minimalmeena: you're right, I forgot that cc_ntp supports installation, I've never tried it23:26
meenaand puppet, and ansible and chef, and salt, too23:26
meenathey install the thing, configure it, and start it23:27
minimalthe restart isn't an issue, Alpine's rc-service supports that23:27
meenaenable tho……23:28
minimalansible doesn't install a daemon/service though AFAIK, it just runs ansible locally to pull a playbook from git, haven't looked at puppet, chef, or salt for c-i23:28
meenatrue, true… alpine is an exception there23:29
minimalwell to support enable on alpine I'd have to add support for "rc-update add ..." instead of it calling "rc-service"23:29
minimalGentoo used to use openrc, they've moved to Systemd now AFAIK23:29
meenai do not understand the appeal.23:30
minimalthat's a different discussion/argument ;-)23:33
sam_minimal: i mean that's.. not true?23:34
minimaleven if enable/disable support was added to c-i for Alpine there'd still be (for all distros) the issue you pointed out of needing to disable "rival" services, so cc_ntp would need to disable busybox ntp (and others) if chrony was enabled, cc_rsyslog would need ot disable Busybox syslogd or syslog-ng, etc23:34
sam_minimal: we just support both23:34
sam_(and have for many years)23:34
minimalsam_: referring to Gentoo? I'd though the move of OpenRc from Gentoo to its own git repo related to Gentoo's move to systemd, perhaps I picked that up wrong23:35
sam_you did23:36
sam_that was just because it's an independent project23:36
sam_(and it's used by multiple distros)23:36
minimalsam_: perhaps I'm getting it confused with eudev?23:36
sam_i think so, although we didn't move away from that either, we still have it, but we stopped pretending it was actively maintained by us (the main person who was doing it is too busy now)23:37
sam_so it became a 3rd party thing23:37
sam_but we still have udev on openrc systems, just split out from systemd23:37
minimalsam_: right, that's probably what was at the back on my mind lol23:37
sam_yeah that makes sense now you said it23:37
sam_I should've thought!23:37
sam_I was thinking, the openrc repo thing was like.. 10 years ago, surely23:38
minimalsam_: my memory's not getting any better with age ;-)23:38
meenaminimal: you are not of minimal age? like, 7 or 21, or whatever else counts as young23:43
minimalwrong side of 50 ;-)23:49
minimalbeen there, done that, wrote the book, lol23:49
* meena turned 38 on the coolest date this year23:55
meenaI wonder if anyone turned 22 on that date23:55
meenaand if they did, i hope they got to celebrate instead of being sick with Covid23:56
meenaI'll give it another shot in 200 years 🧛🏻‍♀️23:56

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