diff options
author | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-02-28 21:56:36 +0100 |
---|---|---|
committer | Hugo Hörnquist <hugo@lysator.liu.se> | 2022-02-28 21:56:36 +0100 |
commit | 1f2b77d50a3ec8e1c08f6f1dbe7a8c67f1f9570f (patch) | |
tree | 02a56668b2f0806a045a14f36c7c17da35d63250 /manifests | |
parent | Puppetboard view all by default. (diff) | |
download | profiles-1f2b77d50a3ec8e1c08f6f1dbe7a8c67f1f9570f.tar.gz profiles-1f2b77d50a3ec8e1c08f6f1dbe7a8c67f1f9570f.tar.xz |
Fix self record in /etc/hosts.
Diffstat (limited to 'manifests')
-rw-r--r-- | manifests/common.pp | 3 |
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', } |