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
ba838472
Commit
ba838472
authored
Jan 04, 2018
by
Bob Vincent
Committed by
Raphaël Pinson
Jan 16, 2018
Browse files
Require and use the puppet-alternatives module.
parent
ad99414a
Changes
2
Hide whitespace changes
Inline
Side-by-side
manifests/service.pp
View file @
ba838472
...
...
@@ -12,10 +12,9 @@ class postfix::service {
restart
=>
$::postfix::params::restart_cmd
,
}
if
$::osfamily
==
'RedHat'
{
exec
{
'alternatives --set mta /usr/sbin/sendmail.postfix'
:
alternatives
{
'mta'
:
path
=>
'/usr/sbin/sendmail.postfix'
,
require
=>
Service
[
'postfix'
],
path
=>
'/bin:/sbin:/usr/bin:/usr/sbin'
,
unless
=>
'test /etc/alternatives/mta -ef /usr/sbin/sendmail.postfix'
,
}
}
}
metadata.json
View file @
ba838472
...
...
@@ -19,6 +19,10 @@
{
"name"
:
"camptocamp/augeas"
,
"version_requirement"
:
">=1.0.0 <2.0.0"
},
{
"name"
:
"puppet/alternatives"
,
"version_requirement"
:
">=2.0.0 <3.0.0"
}
],
"operatingsystem_support"
:
[
...
...
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