From 1f2b77d50a3ec8e1c08f6f1dbe7a8c67f1f9570f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 28 Feb 2022 21:56:36 +0100 Subject: Fix self record in /etc/hosts. --- manifests/common.pp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'manifests') 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', } -- cgit v1.2.3