summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/common.pp7
1 files changed, 7 insertions, 0 deletions
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}",