/srv/irclogs.ubuntu.com/2023/05/15/#cloud-init.txt

Anihello everyone - any comment on this potential security issue? https://github.com/canonical/cloud-init/issues/411209:10
-ubottu:#cloud-init- Issue 4112 in canonical/cloud-init "ssh host key leaking into the logs when console is not available" [Open]09:10
AniI opened this on github since cloud-init is moving away from LP09:11
meenaAni: good start09:12
meenaSo, first off: aren't ssh keys public?09:13
meenalike, you can connect via ssh to a server and it'll send you its keys09:13
Anigood point write-ssh-key-fingerprints  seems to be scanning public keys only > for f in /etc/ssh/ssh_host_*key.pub; do09:18
meenađź‘Ť09:20
meenai love writing new code that should just work™, and doesn't. and then i test the old code that doesn't work either14:01
meena(i did a qemu-img resize of the disk, but cc_growpart isn't doing it's thing. neither the old code nor the new one)14:08
meenaI'm pretty, and sure, this worked in the past… but then again, this is the first time i'm using MBR partitions in 320932 years.14:11
=== sergiodj_ is now known as sergiodj
SDes91Hi all, is there a way in cloud-init to install pip packages?17:16
meenaSDes91: no17:21
meenaWe only have the main package managers implemented17:22
SDes91Would it be better than to install pip and some required pip packages via an ansible role? Or would you have some recommendations?17:22
meenafunnily enough, we can install Ansible from pip17:24
* meena likes Puppet17:24
SDes91hence the question since ansible can be installed with pip.17:25
meenaSDes91:  see the discussion here https://github.com/canonical/cloud-init/pull/195017:32
-ubottu:#cloud-init- Pull 1950 in canonical/cloud-init "Support snap in Ubuntu's 'install_packages'" [Closed]17:32
minimalSDes91: use "runcmd"17:32
SDes91that is what I am currently doing. Thanks. Also a quick question,  can I setup the `apt.sources` in such a way that docker is preconfigured? I currently do the thing via runcmd17:36
meenaapt sources should run before packages17:36
SDes91so an example in the docs for chef should be similar for the docker related apt sources setup?17:38
minimalSDes91: how would "apt.sources" preconfigure the docker daemon. Perhaps you are referring to adding an apt sources entry for Docker (the company) own Debian repo? I assume that can be done but you'd still need to install the docker packages using "packages:"17:39
SDes91Yes. sorry for the wording. I mean setting up the apt sources for docker first and then installing it via packages.17:40
minimalSDes91: how you looked at the cloud-init docs to see how to do this?17:42
SDes91https://cloudinit.readthedocs.io/en/latest/reference/examples.html#install-and-run-chef-recipes referring to the chef example?17:43
SDes91so set up the `apt` part of the example to configure the public gpg key from docker and set the source should work maybe.17:45
minimalnot sure why you're mentioning Chef, using the cc_apt_configure and cc_package_update_upgrade_install modules should be all you need for docker17:47
SDes91sorry I am not very confident with cloud-init so I am relying on the examples to join the dots.17:48
meenaTIL: you can't extend a root partion on MBR, if there's swap after it.19:41
meena4 years after adding the feature wrong, i now know how to fix an issue…19:55
meenaTIL: you can't extend a root partion on GPT either, if there's swap after it.20:22
meenaZFS wins again.20:22
minimalmeena: yes growpart can only gow the root part if it is the LAST partition on the device, otherwise it would need to have code to shrink any partitions after rootfs to make space for root partition growing22:38
minimalthat's why when I create OS disk images I place the root partition last...22:39
minimal"shrink any partitions after rootfs" == "move the start of the next partition after rootfs' partition further along the disk"23:05
meenaminimal: i need to check if that's an option23:44
meenabut it seems that a) using zfs, you don't care about that issue, and b) not creating a swap partition, and letting the growfs service do that does the trick23:45

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