Skip to content
GitLab
Menu
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
3b8ef235
Commit
3b8ef235
authored
Feb 09, 2010
by
Marc Fournier
Browse files
postfix: added support for CentOS and Ubuntu
Based on a suggestion and patch from Nick Anderson. Thanks !
parent
18661db4
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifests/classes/postfix.pp
View file @
3b8ef235
...
...
@@ -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"
;
...
...
manifests/definitions/hash.pp
View file @
3b8ef235
...
...
@@ -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"
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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