summaryrefslogtreecommitdiff
path: root/puppet/modules
diff options
context:
space:
mode:
Diffstat (limited to 'puppet/modules')
-rw-r--r--puppet/modules/site_config/manifests/hosts.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/puppet/modules/site_config/manifests/hosts.pp b/puppet/modules/site_config/manifests/hosts.pp
index e3408b27..06cd5c01 100644
--- a/puppet/modules/site_config/manifests/hosts.pp
+++ b/puppet/modules/site_config/manifests/hosts.pp
@@ -9,9 +9,10 @@ class site_config::hosts() {
}
exec { "/bin/hostname $hostname":
- subscribe => [ File['/etc/hostname'], File['/etc/hosts'] ]
+ subscribe => [ File['/etc/hostname'], File['/etc/hosts'] ],
+ refreshonly => true;
}
-
+
file { '/etc/hosts':
content => template('site_config/hosts'),
mode => '0644', owner => root, group => root;