summaryrefslogtreecommitdiff
path: root/manifests/puppetd.pp
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2011-02-23 21:36:34 -0300
committerSilvio Rhatto <rhatto@riseup.net>2011-02-23 21:36:34 -0300
commitfc86a0813130503249a1f4208eadbcea60954220 (patch)
treee24c1c200b29aa5fb5716a8ca0156d37b3a49bfa /manifests/puppetd.pp
parentaa0389aebd3db4cc456b0b390f26cad969ee96ba (diff)
downloadpuppet-puppet-fc86a0813130503249a1f4208eadbcea60954220.tar.gz
puppet-puppet-fc86a0813130503249a1f4208eadbcea60954220.tar.bz2
Trying to keep the right permissions and ownership at /etc/puppet
Diffstat (limited to 'manifests/puppetd.pp')
-rw-r--r--manifests/puppetd.pp9
1 files changed, 8 insertions, 1 deletions
diff --git a/manifests/puppetd.pp b/manifests/puppetd.pp
index 0fcba46..7e2b33b 100644
--- a/manifests/puppetd.pp
+++ b/manifests/puppetd.pp
@@ -42,10 +42,17 @@ class puppetd inherits puppet {
file { "/etc/puppet/puppet.conf":
ensure => file,
owner => puppet,
- group => root,
+ group => puppet,
mode => 0640,
content => template("puppet/puppet-node.conf.erb"),
}
+ } else {
+ file { "/etc/puppet/puppet.conf":
+ ensure => file,
+ owner => puppet,
+ group => puppet,
+ mode => 0640,
+ }
}
# cron rule to restart puppet minutes after puppetmaster is restarted