Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Projets publics
Puppet Camptocamp Postfix
Commits
4d569c54
Commit
4d569c54
authored
Mar 20, 2018
by
Chris Denneen
Committed by
Raphaël Pinson
May 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Moved Exec['newaliases'] to services so it could be run after service restart
parent
68380615
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
7 deletions
+7
-7
manifests/files.pp
manifests/files.pp
+0
-7
manifests/service.pp
manifests/service.pp
+7
-0
No files found.
manifests/files.pp
View file @
4d569c54
...
@@ -52,13 +52,6 @@ class postfix::files {
...
@@ -52,13 +52,6 @@ class postfix::files {
seltype
=>
$postfix::params::aliasesseltype
,
seltype
=>
$postfix::params::aliasesseltype
,
}
}
# Aliases
exec
{
'newaliases'
:
command
=>
'/usr/bin/newaliases'
,
refreshonly
=>
true
,
subscribe
=>
File
[
'/etc/aliases'
],
}
# Config files
# Config files
if
$mastercf_source
{
if
$mastercf_source
{
$mastercf_content
=
undef
$mastercf_content
=
undef
...
...
manifests/service.pp
View file @
4d569c54
...
@@ -11,6 +11,13 @@ class postfix::service {
...
@@ -11,6 +11,13 @@ class postfix::service {
hasstatus
=>
true
,
hasstatus
=>
true
,
restart
=>
$::postfix::params::restart_cmd
,
restart
=>
$::postfix::params::restart_cmd
,
}
}
# Aliases
exec
{
'newaliases'
:
command
=>
'/usr/bin/newaliases'
,
refreshonly
=>
true
,
subscribe
=>
File
[
'/etc/aliases'
],
require
=>
Service
[
'postfix'
],
}
if
$::osfamily
==
'RedHat'
{
if
$::osfamily
==
'RedHat'
{
alternatives
{
'mta'
:
alternatives
{
'mta'
:
path
=>
'/usr/sbin/sendmail.postfix'
,
path
=>
'/usr/sbin/sendmail.postfix'
,
...
...
Write
Preview
Markdown
is supported
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