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
a8b52cf4
Commit
a8b52cf4
authored
Dec 04, 2017
by
Bob Vincent
Committed by
Raphaël Pinson
Jan 16, 2018
Browse files
Install sendmail alternative on RedHat
parent
7ba3c28a
Changes
1
Hide whitespace changes
Inline
Side-by-side
manifests/service.pp
View file @
a8b52cf4
...
...
@@ -11,4 +11,11 @@ class postfix::service {
hasstatus
=>
true
,
restart
=>
$::postfix::params::restart_cmd
,
}
if
$::osfamily
==
'RedHat'
{
exec
{
'alternatives --set mta /usr/sbin/sendmail.postfix'
:
require
=>
Service
[
'postfix'
],
path
=>
'/bin:/sbin:/usr/bin:/usr/sbin'
,
unless
=>
'test /etc/alternatives/mta -ef /usr/sbin/sendmail.postfix'
,
}
}
}
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