diff options
author | mh <mh@immerda.ch> | 2014-07-09 23:14:42 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2014-07-09 23:14:42 +0200 |
commit | f9068edca5cd1dfd4348a9285df447a293d287fd (patch) | |
tree | 93abf9c6d8be659ef877360caa1c3249746c5073 /manifests | |
parent | 39f1218960348d43bd368bff546d9467a1264e0d (diff) | |
download | puppet-postfix-f9068edca5cd1dfd4348a9285df447a293d287fd.tar.gz puppet-postfix-f9068edca5cd1dfd4348a9285df447a293d287fd.tar.bz2 |
get rid off lsb facts
Diffstat (limited to 'manifests')
-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 c7b9ce8..3d51bb1 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -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, |