get rid off lsb facts

This commit is contained in:
mh 2014-07-09 23:14:42 +02:00
parent 39f1218960
commit f9068edca5
3 changed files with 2 additions and 2 deletions

View file

@ -59,7 +59,7 @@ class postfix(
case $::operatingsystem { case $::operatingsystem {
RedHat, CentOS: { RedHat, CentOS: {
case $::lsbmajdistrelease { case $::operatingsystemmajrelease {
"4": { $postfix_seltype = "etc_t" } "4": { $postfix_seltype = "etc_t" }
"5": { $postfix_seltype = "postfix_etc_t" } "5": { $postfix_seltype = "postfix_etc_t" }
default: { $postfix_seltype = undef } default: { $postfix_seltype = undef }
@ -143,7 +143,7 @@ class postfix(
content => $::operatingsystem ? { content => $::operatingsystem ? {
Redhat => template("postfix/master.cf.redhat5.erb"), Redhat => template("postfix/master.cf.redhat5.erb"),
CentOS => 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"), Ubuntu => template("postfix/master.cf.debian-etch.erb"),
}, },
seltype => $postfix_seltype, seltype => $postfix_seltype,