Skip to content
Snippets Groups Projects
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
Branches
Tags
No related merge requests found
...@@ -57,10 +57,25 @@ class postfix { ...@@ -57,10 +57,25 @@ class postfix {
$postfix_mail_user = 'vmail' $postfix_mail_user = 'vmail'
} }
case $::operatingsystem {
/RedHat|CentOS|Fedora/: {
$mailx_package = 'mailx'
}
/Debian|kFreeBSD/: {
$mailx_package = $::lsbdistcodename ? { $mailx_package = $::lsbdistcodename ? {
'squeeze' => 'bsd-mailx', /lenny|etch|sarge/ => 'mailx',
'lucid' => 'bsd-mailx', default => 'bsd-mailx',
default => 'mailx', }
}
'Ubuntu': {
if (versioncmp('10', $::lsbmajdistrelease) > 0) {
$mailx_package = 'mailx'
} else {
$mailx_package = 'bsd-mailx'
}
}
} }
$master_os_template = $::operatingsystem ? { $master_os_template = $::operatingsystem ? {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment