aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Fournier <marc.fournier@camptocamp.com>2009-05-26 12:52:54 +0200
committerMarc Fournier <marc.fournier@camptocamp.com>2009-05-26 12:52:54 +0200
commitca0e5510b8eed63dfdaf55936d395987d407fb7f (patch)
tree5de77cdb984df28a1ea6e70d185abfd4997a0e0d
parent3d31ddcede7fcc24096ffbc54d6be4dae152db64 (diff)
downloadpuppet-postfix-ca0e5510b8eed63dfdaf55936d395987d407fb7f.tar.gz
puppet-postfix-ca0e5510b8eed63dfdaf55936d395987d407fb7f.tar.bz2
force ownership/mode of {main,master}.cf
-rw-r--r--manifests/classes/postfix.pp4
1 files changed, 4 insertions, 0 deletions
diff --git a/manifests/classes/postfix.pp b/manifests/classes/postfix.pp
index fa2c249..bf1b8f8 100644
--- a/manifests/classes/postfix.pp
+++ b/manifests/classes/postfix.pp
@@ -51,6 +51,8 @@ class postfix {
file { "/etc/postfix/master.cf":
ensure => present,
+ owner => "root",
+ mode => "0644",
content => $operatingsystem ? {
Redhat => template("postfix/master.cf.redhat5.erb"),
Debian => template("postfix/master.cf.debian-etch.erb"),
@@ -61,6 +63,8 @@ class postfix {
file { "/etc/postfix/main.cf":
ensure => present,
+ owner => "root",
+ mode => "0644",
source => "puppet:///postfix/main.cf",
replace => false,
notify => Service["postfix"],