]> gitweb.fluxo.info Git - puppet-postfix.git/commitdiff
get rid off lsb facts
authormh <mh@immerda.ch>
Wed, 9 Jul 2014 21:14:42 +0000 (23:14 +0200)
committermh <mh@immerda.ch>
Wed, 9 Jul 2014 21:14:42 +0000 (23:14 +0200)
manifests/init.pp
templates/master.cf.debian-6.erb [moved from templates/master.cf.debian-lenny.erb with 100% similarity]
templates/master.cf.debian-7.erb [moved from templates/master.cf.debian-wheezy.erb with 100% similarity]

index c7b9ce80f0c58cbb3c8cf8cb9cf526948757a6ec..3d51bb151055b382344a7dd2ef7203482a29dd09 100644 (file)
@@ -59,7 +59,7 @@ class postfix(
   case $::operatingsystem {
 
     RedHat, CentOS: {
-      case $::lsbmajdistrelease {
+      case $::operatingsystemmajrelease {
         "4":     { $postfix_seltype = "etc_t" }
         "5":     { $postfix_seltype = "postfix_etc_t" }
         default: { $postfix_seltype = undef }
@@ -143,7 +143,7 @@ class postfix(
     content => $::operatingsystem ? {
       Redhat => template("postfix/master.cf.redhat5.erb"),
       CentOS => template("postfix/master.cf.redhat5.erb"),
-      Debian => template("postfix/master.cf.debian-${::lsbdistcodename}.erb"),
+      Debian => template("postfix/master.cf.debian-${::operatingsystemmajrelease}.erb"),
       Ubuntu => template("postfix/master.cf.debian-etch.erb"),
     },
     seltype => $postfix_seltype,