summaryrefslogtreecommitdiff
path: root/manifests/centos.pp
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2013-12-28 17:26:14 +0100
committermh <mh@immerda.ch>2013-12-28 17:26:14 +0100
commit26e498007ae101aba154acc8435729768e9590ff (patch)
tree0eefb408589499a168a3c9713acf62b8dad05acf /manifests/centos.pp
parentc3a52f63c2a97b8d6135bd3131b36550d97d388a (diff)
reduce dependency on lsb modules, rather use the builtin facts
Diffstat (limited to 'manifests/centos.pp')
-rw-r--r--manifests/centos.pp6
1 files changed, 3 insertions, 3 deletions
diff --git a/manifests/centos.pp b/manifests/centos.pp
index caf46ce..02adf77 100644
--- a/manifests/centos.pp
+++ b/manifests/centos.pp
@@ -28,12 +28,12 @@ class apache::centos inherits apache::package {
path => '/var/www/html/index.html',
}
- if $::selinux != 'false' {
+ if str2bool($::selinux) {
Selinux::Fcontext{
before => File[web_dir],
}
- $seltype_rw = $::lsbmajdistrelease ? {
- 5 => 'httpd_sys_script_rw_t',
+ $seltype_rw = $::operatingsystemmajrelease ? {
+ 5 => 'httpd_sys_script_rw_t',
default => 'httpd_sys_rw_content_t'
}
selinux::fcontext{