summaryrefslogtreecommitdiff
path: root/manifests/selinux.pp
diff options
context:
space:
mode:
Diffstat (limited to 'manifests/selinux.pp')
-rw-r--r--manifests/selinux.pp16
1 files changed, 16 insertions, 0 deletions
diff --git a/manifests/selinux.pp b/manifests/selinux.pp
new file mode 100644
index 0000000..aec1774
--- /dev/null
+++ b/manifests/selinux.pp
@@ -0,0 +1,16 @@
+# manifests/selinux.pp
+# manage selinux specific stuff
+
+class apache::selinux {
+ case $operatingsystem {
+ gentoo: { include apache::selinux::gentoo }
+ default: { include apache::selinux::base }
+ }
+}
+
+class apache::selinux::base {}
+
+class apache::selinux::gentoo inherits apache::selinux::base {
+ selinux::loadmodule {"apache": location => "/usr/share/selinux/${selinux_mode}/apache.pp" }
+ gentoo::installselinuxpackage { "selinux-apache": }
+}