=== EugenMayer5964 is now known as EugenMayer596 | ||
slawomir | Hi all! | 22:07 |
---|---|---|
slawomir | I have a question. Is it possible to set a hostname containing static and random part like host-13543? | 22:07 |
slawomir | I'm using AWS cloud. | 22:07 |
slawomir | I try constructions like: hostname: host-$(shuf -i 1000-9999 -n 1) but it is not working (hostname: "host-$(shuf -i 1000-9999 -n 1)" also does not work). | 22:07 |
slawomir | I try to set a hostname via bootcmd: hostnamectl set-hostname "host-$(shuf -i 1000-9999 -n 1)" but it is impossible cause of "Failed to connect to bus: No such file or directory" -> "to early" | 22:07 |
slawomir | I try to setup a hostname via runcmd but it is "to late" for manage_etc_hosts functionality and proper values are not in /etc/hosts file. | 22:07 |
slawomir | Maybe you guys have an idea how to deal with this? | 22:07 |
slawomir | PS. Are where other then bootcmd and runcmd configuration directives that could run some command at other stages of cloud init process? | 22:07 |
Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!