|
=== tds7 is now known as tds |
|
=== tds1 is now known as tds |
|
[07:51] <meena> whoohoo! Green! https://github.com/canonical/cloud-init/pull/363 |
|
[08:43] <meena> whoa, who would've thought exchanging one file, but not… everything it touches, could somehow break the system??! |
|
[13:24] <Odd_Bloke> Weird how that works. :) |
|
[14:01] <andras-kovacs> Hi! Is there a nice way to set a short name as static host name instead of the FQDN? (with cloud-init of course) |
|
[14:01] <andras-kovacs> Or should I make it with a runcmd? |
|
[14:02] <andras-kovacs> I mean ask cloud-init to set only hostname into the /etc/hostname instead of the hostname.domain. |
|
=== bigjazzs1und is now known as bigjazzsound |
|
[14:37] <Odd_Bloke> andras-kovacs: What distro are you running on? |
|
[14:39] <andras-kovacs> Red Hat... |
|
[14:40] <andras-kovacs> I think a runcmd part will be fine like hostnamectl set-hostname "${HOSTNAME/.*/}" |
|
[14:40] <andras-kovacs> It's a bit messed up scenario :( |
|
[14:43] <Odd_Bloke> andras-kovacs: https://github.com/canonical/cloud-init/blob/master/cloudinit/distros/rhel.py#L80-L91 is the code that performs the hostname set on Red Hat. |
|
[14:44] <Odd_Bloke> andras-kovacs: The hostname passed there is determined by _select_hostname below, and out_fn is self.hostname_conf_fn (so "/etc/sysconfig/network" in this case, I _think_). |
|
[14:45] <Odd_Bloke> That's about as much help as I can be for RH hostname setting though, I'm afraid. |
|
[14:45] <Odd_Bloke> (Feel free to ask more Qs though! I just don't have the background to speak with authority.) |
|
[15:07] <andras-kovacs> Very many thanks!! |
|
[17:18] <meena> Odd_Bloke: more questions, or rather, the key question. |
|
[17:18] <meena> up on GitHub. |
|
=== tds4 is now known as tds |
|
[19:45] <Odd_Bloke> falcojr: FYI, I don't know the answers to some of your Qs in https://github.com/canonical/cloud-init/pull/367 off-hand, so I'm doing some research. |
|
[19:46] <falcojr> sounds good |
|
[20:00] <Odd_Bloke> falcojr: Could you pastebin an example traceback produced by the code in that PR? (You should have one in cloud-init.log.) |
|
[20:01] <falcojr> sure |
|
[20:01] <Odd_Bloke> Thx! |
|
[20:04] <falcojr> https://paste.ubuntu.com/p/cH8rWmwQ4z/ |
|
[20:04] <falcojr> looks like I missed a substitution |
|
[20:07] <falcojr> I'll put it in a github comment too |
|
[20:09] <Odd_Bloke> falcojr: Cool, you've presumably seen my comment then. :) |
|
[20:10] <falcojr> yep, I've been looking in some of the same areas |
|
[20:10] <Odd_Bloke> Cool, will follow up on your higher-level behavioural questions now. |
|
[20:23] <Odd_Bloke> falcojr: OK, I've replied with the behavioural questions; I've skirted around talking about implementation to give you the opportunity to think about it unbiased, so let me know if you'd like to discuss that some more. |
|
[20:24] <Odd_Bloke> s/questions/answers/ |
|
|