diff options
author | mh <mh@immerda.ch> | 2013-12-28 17:26:14 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2013-12-28 17:26:14 +0100 |
commit | 26e498007ae101aba154acc8435729768e9590ff (patch) | |
tree | 0eefb408589499a168a3c9713acf62b8dad05acf /manifests/centos.pp | |
parent | c3a52f63c2a97b8d6135bd3131b36550d97d388a (diff) |
reduce dependency on lsb modules, rather use the builtin facts
Diffstat (limited to 'manifests/centos.pp')
-rw-r--r-- | manifests/centos.pp | 6 |
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{ |