diff options
author | varac <varacanero@zeromail.org> | 2015-05-06 23:06:07 +0200 |
---|---|---|
committer | varac <varacanero@zeromail.org> | 2015-05-06 23:06:07 +0200 |
commit | f09cd0eff2bcab7e12c09ec67be3c918bc83fac5 (patch) | |
tree | 2f47cbb6528374294cc5b28703b9f82e7f89ab03 | |
parent | f7fc77ec14eedafc08895c7d2555d457c758b34e (diff) |
use lsbmajdistrelease fact instead of operatingsystemmajrelease because wheezy version of facter doesn't support the latter
-rw-r--r-- | manifests/init.pp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index a90e790..83457cf 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -61,7 +61,7 @@ class postfix( case $::operatingsystem { RedHat, CentOS: { - case $::operatingsystemmajrelease { + case $::lsbmajdistrelease { "4": { $postfix_seltype = "etc_t" } "5": { $postfix_seltype = "postfix_etc_t" } default: { $postfix_seltype = undef } @@ -155,7 +155,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-${::operatingsystemmajrelease}.erb"), + Debian => template("postfix/master.cf.debian-${::lsbmajdistrelease}.erb"), Ubuntu => template("postfix/master.cf.debian-etch.erb"), }, seltype => $postfix_seltype, |