Skip to content

Commit 1f0f3e1

Browse files
Merge pull request #2428 from puppetlabs/maint-addressing_selinux_facts
(Maint) Addressing Selinux legacy facts
2 parents 8656238 + 803fe1d commit 1f0f3e1

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

spec/acceptance/apache_parameters_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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',

spec/acceptance/class_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
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',

spec/acceptance/vhost_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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',

spec/setup_acceptance_node.pp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
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',

0 commit comments

Comments
 (0)