Skip to content
Snippets Groups Projects
Commit 72f551ab authored by Adam Lewenberg's avatar Adam Lewenberg
Browse files

CentOS support in postfix.pp

parent 92b2c4d9
No related branches found
No related tags found
No related merge requests found
......@@ -22,6 +22,14 @@ class base::postfix {
Package['postfix'] ],
}
# We want the CentOS version of master.cf to be the same as the RedHat
# version:
if ($::operatingsystem =~ /(?i:centos)/) {
$mastercfsuffix = 'RedHat'
} else {
$mastercfsuffix = $::operatingsystem
}
# Basic configuration files.
file {
'/etc/filter-syslog/postfix':
......@@ -35,7 +43,7 @@ class base::postfix {
notify => Service['postfix'],
require => Package['postfix'];
'/etc/postfix/master.cf':
source => "puppet:///modules/base/postfix/etc/postfix/master.cf.$::operatingsystem",
source => "puppet:///modules/base/postfix/etc/postfix/master.cf.$mastercfsuffix",
notify => Service['postfix'],
require => Package['postfix'];
}
......@@ -70,4 +78,4 @@ class base::postfix::server inherits base::postfix {
protocol => 'tcp',
port => [ 25, 465, 587 ],
}
}
\ No newline at end of file
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment