]> gitweb.fluxo.info Git - puppet-postfix.git/commitdiff
force ownership/mode of {main,master}.cf
authorMarc Fournier <marc.fournier@camptocamp.com>
Tue, 26 May 2009 10:52:54 +0000 (12:52 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Tue, 26 May 2009 10:52:54 +0000 (12:52 +0200)
manifests/classes/postfix.pp

index fa2c249faefd399a0b18a22801db56c5ddea82c8..bf1b8f81c51389614d0b0a99dc05d0be95fae47c 100644 (file)
@@ -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"],