force ownership/mode of {main,master}.cf
This commit is contained in:
parent
3d31ddcede
commit
ca0e5510b8
1 changed files with 4 additions and 0 deletions
|
@ -51,6 +51,8 @@ class postfix {
|
||||||
|
|
||||||
file { "/etc/postfix/master.cf":
|
file { "/etc/postfix/master.cf":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
owner => "root",
|
||||||
|
mode => "0644",
|
||||||
content => $operatingsystem ? {
|
content => $operatingsystem ? {
|
||||||
Redhat => template("postfix/master.cf.redhat5.erb"),
|
Redhat => template("postfix/master.cf.redhat5.erb"),
|
||||||
Debian => template("postfix/master.cf.debian-etch.erb"),
|
Debian => template("postfix/master.cf.debian-etch.erb"),
|
||||||
|
@ -61,6 +63,8 @@ class postfix {
|
||||||
|
|
||||||
file { "/etc/postfix/main.cf":
|
file { "/etc/postfix/main.cf":
|
||||||
ensure => present,
|
ensure => present,
|
||||||
|
owner => "root",
|
||||||
|
mode => "0644",
|
||||||
source => "puppet:///postfix/main.cf",
|
source => "puppet:///postfix/main.cf",
|
||||||
replace => false,
|
replace => false,
|
||||||
notify => Service["postfix"],
|
notify => Service["postfix"],
|
||||||
|
|
Loading…
Reference in a new issue