csharpsteen
08/04/2023, 2:36 PM$(hostname -s).$(hostname -d)
with hostname -f
as a fallback if one of those is empty.matt
08/04/2023, 2:37 PMmatt
08/04/2023, 2:37 PMmatt
08/04/2023, 2:38 PMcsharpsteen
08/04/2023, 2:38 PMhostnamectl set-hostname
are used as a fallback if DNS is not providing an answer.matt
08/04/2023, 2:39 PMvchepkov
08/04/2023, 2:40 PMmatt
08/04/2023, 2:40 PMmatt
08/04/2023, 2:41 PMmatt
08/04/2023, 2:41 PMvchepkov
08/04/2023, 2:41 PMmatt
08/04/2023, 2:42 PMbastelfreak
08/04/2023, 2:42 PMmatt
08/04/2023, 2:43 PMmatt
08/04/2023, 2:43 PMbastelfreak
08/04/2023, 2:43 PMmatt
08/04/2023, 2:43 PMmatt
08/04/2023, 2:43 PMmatt
08/04/2023, 2:44 PMmatt
08/04/2023, 2:44 PMmatt
08/04/2023, 2:44 PMbastelfreak
08/04/2023, 2:44 PMbastelfreak
08/04/2023, 2:44 PMvchepkov
08/04/2023, 2:45 PMcsharpsteen
08/04/2023, 2:46 PMhostname -f
. It's $(hostname -s).$(hostname -d)
or just hostname -s
if domain is empty:
https://github.com/puppetlabs/puppet/blob/7.25.0/lib/puppet/settings.rb#L69-L78matt
08/04/2023, 2:49 PMvchepkov
08/04/2023, 2:50 PMhostname -f
?vchepkov
08/04/2023, 2:50 PMSlackbot
08/04/2023, 3:02 PMMoe
08/04/2023, 5:01 PM$path = '/my/path/is/here'
$array = split($path, '/')
$blub = ''
$array.each |$i| {
$blub = "$blub/$i"
notice($blub)
}
This is obviously the wrong syntax but I hope it's getting my point across.