postfix: added support for CentOS and Ubuntu
Based on a suggestion and patch from Nick Anderson. Thanks !
This commit is contained in:
parent
18661db4da
commit
3b8ef235fa
2 changed files with 5 additions and 3 deletions
|
@ -20,7 +20,7 @@ class postfix {
|
|||
# selinux labels differ from one distribution to another
|
||||
case $operatingsystem {
|
||||
|
||||
RedHat: {
|
||||
RedHat, CentOS: {
|
||||
case $lsbmajdistrelease {
|
||||
"4": { $postfix_seltype = "etc_t" }
|
||||
"5": { $postfix_seltype = "postfix_etc_t" }
|
||||
|
@ -81,7 +81,9 @@ class postfix {
|
|||
mode => "0644",
|
||||
content => $operatingsystem ? {
|
||||
Redhat => template("postfix/master.cf.redhat5.erb"),
|
||||
CentOS => template("postfix/master.cf.redhat5.erb"),
|
||||
Debian => template("postfix/master.cf.debian-etch.erb"),
|
||||
Ubuntu => template("postfix/master.cf.debian-etch.erb"),
|
||||
},
|
||||
seltype => $postfix_seltype,
|
||||
notify => Service["postfix"],
|
||||
|
@ -108,7 +110,7 @@ class postfix {
|
|||
}
|
||||
|
||||
case $operatingsystem {
|
||||
RedHat: {
|
||||
RedHat, CentOS: {
|
||||
postfix::config {
|
||||
"sendmail_path": value => "/usr/sbin/sendmail.postfix";
|
||||
"newaliases_path": value => "/usr/bin/newaliases.postfix";
|
||||
|
|
|
@ -34,7 +34,7 @@ define postfix::hash ($ensure="present") {
|
|||
# selinux labels differ from one distribution to another
|
||||
case $operatingsystem {
|
||||
|
||||
RedHat: {
|
||||
RedHat, CentOS: {
|
||||
case $lsbmajdistrelease {
|
||||
"4": { $postfix_seltype = "etc_t" }
|
||||
"5": { $postfix_seltype = "postfix_etc_t" }
|
||||
|
|
Loading…
Reference in a new issue