postfix: whether or not we touch main.cf is not dependent on membership in the lists...
authorPeter Palfrader <peter@palfrader.org>
Sun, 15 Sep 2019 07:26:01 +0000 (09:26 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sun, 15 Sep 2019 07:26:01 +0000 (09:26 +0200)
hieradata/nodes/bendel.debian.org.yaml [new file with mode: 0644]
modules/postfix/manifests/init.pp

diff --git a/hieradata/nodes/bendel.debian.org.yaml b/hieradata/nodes/bendel.debian.org.yaml
new file mode 100644 (file)
index 0000000..68fcfea
--- /dev/null
@@ -0,0 +1,2 @@
+--- 
+postfix::manage_maincf: false
index cd6470a..88591a9 100644 (file)
@@ -1,4 +1,6 @@
-class postfix {
+class postfix(
+  Boolean $manage_maincf = true,
+) {
   package { 'postfix':
     ensure => installed
   }
@@ -19,7 +21,7 @@ class postfix {
   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'],
     }