Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
Puppet Camptocamp Postfix
Commits
9cfd6845
Commit
9cfd6845
authored
Sep 27, 2012
by
Marc Fournier
Browse files
postfix: improved mailx package name definition logic.
parent
eec3c07d
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/init.pp
View file @
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
?
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment