]> gitweb.fluxo.info Git - puppet-postfix.git/commitdiff
join case statements in init.pp
authorvarac <varacanero@zeromail.org>
Tue, 1 Dec 2015 15:27:41 +0000 (16:27 +0100)
committervarac <varacanero@zeromail.org>
Tue, 1 Dec 2015 15:27:41 +0000 (16:27 +0100)
manifests/init.pp

index f92e20bc74da5d5effccfba9ddca7ffe3d934c43..d298183c27f837731379ec7f74bc85aa301d5b9b 100644 (file)
@@ -58,7 +58,7 @@ class postfix(
 
   case $::operatingsystem {
 
-    RedHat, CentOS: {
+    'RedHat', 'CentOS': {
       $master_cf_template = 'postfix/master.cf.redhat5.erb'
 
       # selinux labels differ from one distribution to another
@@ -67,6 +67,12 @@ class postfix(
         '5':     { $postfix_seltype = 'postfix_etc_t' }
         default: { $postfix_seltype = undef }
       }
+
+      postfix::config {
+        'sendmail_path': value => '/usr/sbin/sendmail.postfix';
+        'newaliases_path': value => '/usr/bin/newaliases.postfix';
+        'mailq_path': value => '/usr/bin/mailq.postfix';
+      }
     }
 
     'Debian': {
@@ -183,17 +189,6 @@ class postfix(
     'inet_interfaces': value => $inet_interfaces;
   }
 
-  case $::operatingsystem {
-    RedHat, CentOS: {
-      postfix::config {
-        'sendmail_path': value => '/usr/sbin/sendmail.postfix';
-        'newaliases_path': value => '/usr/bin/newaliases.postfix';
-        'mailq_path': value => '/usr/bin/mailq.postfix';
-      }
-    }
-    default: {}
-  }
-
   postfix::mailalias {'root':
     recipient => $root_mail_recipient,
   }