Skip to content

Commit 6010b0c

Browse files
authored
Merge pull request #27 from dylanratcliffe/fix_hostname_domain
Changed for more reliable hostname resolution
2 parents c1e4c8f + f951bf6 commit 6010b0c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tasks/hostname.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#!/bin/bash
22

3-
hostname=$(/usr/bin/hostnamectl --transient)
3+
hostname=$(/usr/bin/hostname -f)
44

55
# Output a JSON result for ease of Task usage in Puppet Task Plans
66
echo '{ "hostname": "'$hostname'" }'

0 commit comments

Comments
 (0)