summaryrefslogtreecommitdiff
path: root/manifests/init.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/init.pp')
-rw-r--r--manifests/init.pp8
1 files changed, 4 insertions, 4 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index adab904..85ff5af 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -62,7 +62,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 }
@@ -101,7 +101,7 @@ class postfix(
include postfix::virtual_regexp
}
- package { 'mailx':
+ package { ["postfix", "mailx"]:
ensure => installed
}
@@ -126,7 +126,7 @@ class postfix(
file { "/etc/mailname":
ensure => present,
- content => "${mailname}\n",
+ content => "${fqdn}\n",
seltype => $postfix_seltype,
}
@@ -156,7 +156,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-${::lsbmajdistrelease}.erb"),
+ Debian => template("postfix/master.cf.debian-${::operatingsystemmajrelease}.erb"),
Ubuntu => template("postfix/master.cf.debian-etch.erb"),
},
seltype => $postfix_seltype,