File tree Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Expand file tree Collapse file tree 4 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -431,7 +431,7 @@ class { 'apache':
431431 describe 'logging' do
432432 describe 'setup' do
433433 pp = <<-MANIFEST
434- if $facts['osfamily'] == 'RedHat' and $facts['selinux'] {
434+ if $facts['os']['family'] == 'RedHat' and $facts['os'][' selinux']['enabled '] {
435435 exec { 'set_apache_defaults':
436436 command => 'semanage fcontext -a -t httpd_log_t "/apache_spec/logs(/.*)?"',
437437 unless => 'semanage fcontext --list | grep /apache_spec/logs | grep httpd_log_t',
Original file line number Diff line number Diff line change 2727 context 'custom site/mod dir parameters' do
2828 let ( :pp ) do
2929 <<-MANIFEST
30- if $facts['osfamily'] == 'RedHat' and $facts['selinux'] {
30+ if $facts['os']['family'] == 'RedHat' and $facts['os'][' selinux']['enabled '] {
3131 exec { 'set_apache_defaults':
3232 command => 'semanage fcontext --add -t httpd_config_t "/apache_spec/apache_custom(/.*)?"',
3333 unless => 'semanage fcontext --list | grep /apache_spec/apache_custom | grep httpd_config_t',
Original file line number Diff line number Diff line change @@ -1195,7 +1195,7 @@ class { 'apache::mod::wsgi': }
11951195
11961196 describe 'additional_includes' do
11971197 pp = <<-MANIFEST
1198- if $facts['osfamily'] == 'RedHat' and $facts['selinux'] {
1198+ if $facts['os']['family'] == 'RedHat' and $facts['os'][' selinux']['enabled '] {
11991199 exec { 'set_apache_defaults':
12001200 command => 'semanage fcontext --add -t httpd_sys_content_t "/apache_spec/docroot(/.*)?"',
12011201 unless => 'semanage fcontext --list | grep /apache_spec/docroot | grep httpd_sys_content_t',
Original file line number Diff line number Diff line change 1818 }
1919 }
2020
21- if $facts [' selinux' ] {
21+ if $facts [' os ' ][ ' selinux' ][ ' enabled ' ] {
2222 $semanage_package = $facts [' os' ][' release' ][' major' ] ? {
2323 ' 6' => ' policycoreutils-python' ,
2424 ' 7' => ' policycoreutils-python' ,
You can’t perform that action at this time.
0 commit comments