From 7e2b8e0934a8bcaca2f07e4d69e6a8ee6f006e4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= Date: Mon, 28 Feb 2022 22:35:46 +0100 Subject: Transient config to unhost ourself. --- manifests/common.pp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'manifests') diff --git a/manifests/common.pp b/manifests/common.pp index 8b933fe..ff801e5 100644 --- a/manifests/common.pp +++ b/manifests/common.pp @@ -8,6 +8,13 @@ class profiles::common ( content => "${::hostname}\n", } + file_line { 'transient config to unhost ourself': + ensure => absent, + match => $::fqdn, + path => '/etc/hosts', + multiple => true, + match_for_absence => true, + } -> file_line { 'hosts ourself': ensure => present, line => "::1\t${::fqdn}\t${::hostname}", -- cgit v1.2.3