Only set selinux booleans if selinux is enabled

Testing "selinux" facter fact
https://bugzilla.redhat.com/show_bug.cgi?id=892942

Change-Id: I92d4183bb6fb4f6e031ebb1b005c6fa9469b6d59
This commit is contained in:
Derek Higgins
2013-01-31 05:15:54 -05:00
parent e7e0be077b
commit 647b692d5b
2 changed files with 10 additions and 6 deletions

View File

@@ -27,7 +27,9 @@ firewall { '001 horizon incoming':
action => 'accept',
}
selboolean{'httpd_can_network_connect':
value => on,
persistent => true,
if ($::selinux != "false"){
selboolean{'httpd_can_network_connect':
value => on,
persistent => true,
}
}

View File

@@ -22,7 +22,9 @@ firewall { '001 rsync incoming':
action => 'accept',
}
selboolean{'rsync_export_all_ro':
value => on,
persistent => true,
if ($::selinux != "false"){
selboolean{'rsync_export_all_ro':
value => on,
persistent => true,
}
}