openstackgerrit | Merged openstack/diskimage-builder master: Remove octvia-v1-dsvm-* jobs https://review.opendev.org/c/openstack/diskimage-builder/+/793096 | 01:19 |
---|---|---|
*** sam_wan has joined #openstack-dib | 02:11 | |
openstackgerrit | Merged openstack/diskimage-builder master: bootloader: remove extlinux/syslinux path https://review.opendev.org/c/openstack/diskimage-builder/+/541129 | 04:51 |
*** dtantsur has quit IRC | 07:49 | |
*** dtantsur has joined #openstack-dib | 07:51 | |
*** sam_wan has quit IRC | 10:38 | |
*** openstackgerrit has quit IRC | 14:06 | |
*** dking has joined #openstack-dib | 17:36 | |
dking | This is probably a silly question, but what is the best way to have DIB set a hostname on the server? For instance, maybe an existing element or environment option? | 17:44 |
clarkb | dking: we use the simple-init element on our DIB images and that uses config-drive to set the hostname | 17:45 |
clarkb | cloud-init will do it for you too using config drive or metadata service | 17:45 |
dking | clarkb: Thank you. Yeah, I was aware of cloud-init, but I wasn't wanting to use that here. I suppose that I could use simple-init, but that seems to be a bit of overkill. I'm actually building IPA deploy images and just thought that it might be nice to use a hostname to distinguish those. | 17:48 |
clarkb | dking: you'll need something that can lookup the hostname from somewhere and then apply it. That is what glean (simple-init) and cloud-init do | 17:49 |
dking | I really just wanted to set them all to something like "ipa". I've got a few occasions where PXE doesn't take, so I have to go in and manually check the instance with a KVM, which greets me with a login prompt, which includes the hostname. It would be nice to see from there if it's stuck in IPA or if it's actually booted a HDD without having to find the passwords first. It's not really a big deal, though. | 17:52 |
dking | I already have a custom element, so I could probably just modify it there. | 17:52 |
clarkb | if you want to set it to a constant then ya a simple element that sets it at build time should work fine | 17:53 |
clarkb | just add a run.d script that runs `hostnamectl set-hostname ipa` | 17:53 |
clarkb | I'm not aware of anything like that existing already. | 17:54 |
dking | Thanks. I didn't find anything on a quick search, but just thought that I might ask just in case I missed it. | 17:55 |
*** irclogbot_0 has quit IRC | 23:53 | |
*** irclogbot_2 has joined #openstack-dib | 23:56 |
Generated by irclog2html.py 2.17.2 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!