-class postfix {
+class postfix(
+ Boolean $manage_maincf = true,
+) {
package { 'postfix':
ensure => installed
}
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'],
}