Commit dd7511cd authored by Marc Fournier's avatar Marc Fournier
Browse files

Merge pull request #19 from mfournier/mailx-pkg-name

postfix: improved mailx package name definition logic.
parents 5afe18c2 9cfd6845
......@@ -57,10 +57,25 @@ class postfix {
$postfix_mail_user = 'vmail'
}
$mailx_package = $::lsbdistcodename ? {
'squeeze' => 'bsd-mailx',
'lucid' => 'bsd-mailx',
default => 'mailx',
case $::operatingsystem {
/RedHat|CentOS|Fedora/: {
$mailx_package = 'mailx'
}
/Debian|kFreeBSD/: {
$mailx_package = $::lsbdistcodename ? {
/lenny|etch|sarge/ => 'mailx',
default => 'bsd-mailx',
}
}
'Ubuntu': {
if (versioncmp('10', $::lsbmajdistrelease) > 0) {
$mailx_package = 'mailx'
} else {
$mailx_package = 'bsd-mailx'
}
}
}
$master_os_template = $::operatingsystem ? {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment