summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugo Hörnquist <hugo@lysator.liu.se>2022-02-28 21:56:36 +0100
committerHugo Hörnquist <hugo@lysator.liu.se>2022-02-28 21:56:36 +0100
commit1f2b77d50a3ec8e1c08f6f1dbe7a8c67f1f9570f (patch)
tree02a56668b2f0806a045a14f36c7c17da35d63250
parentPuppetboard view all by default. (diff)
downloadprofiles-1f2b77d50a3ec8e1c08f6f1dbe7a8c67f1f9570f.tar.gz
profiles-1f2b77d50a3ec8e1c08f6f1dbe7a8c67f1f9570f.tar.xz
Fix self record in /etc/hosts.
-rw-r--r--manifests/common.pp3
1 files changed, 2 insertions, 1 deletions
diff --git a/manifests/common.pp b/manifests/common.pp
index 2393f31..93db474 100644
--- a/manifests/common.pp
+++ b/manifests/common.pp
@@ -6,7 +6,8 @@ class profiles::common (
file_line { 'hosts ourself':
ensure => present,
- line => "::1\t${facts['name']}\t${::fqdn}",
+ line => "::1\t${::fqdn}\t${::hostname}",
+ match => $::fqdn,
path => '/etc/hosts',
}