projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
wiki -> hiera role; explicitly include apache2
[mirror/dsa-puppet.git]
/
modules
/
postfix
/
manifests
/
init.pp
diff --git
a/modules/postfix/manifests/init.pp
b/modules/postfix/manifests/init.pp
index
cd6470a
..
88591a9
100644
(file)
--- a/
modules/postfix/manifests/init.pp
+++ b/
modules/postfix/manifests/init.pp
@@
-1,4
+1,6
@@
-class postfix {
+class postfix(
+ Boolean $manage_maincf = true,
+) {
package { 'postfix':
ensure => installed
}
package { 'postfix':
ensure => installed
}
@@
-19,7
+21,7
@@
class postfix {
munin::check { 'ps_smtp': script => 'ps_' }
munin::check { 'ps_smtpd': script => 'ps_' }
munin::check { 'ps_smtp': script => 'ps_' }
munin::check { 'ps_smtpd': script => 'ps_' }
- if
! has_role('lists')
{
+ if
$manage_maincf
{
concat { '/etc/postfix/main.cf':
notify => Exec['service postfix reload'],
}
concat { '/etc/postfix/main.cf':
notify => Exec['service postfix reload'],
}