summaryrefslogtreecommitdiff
path: root/manifests
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2008-05-06 18:38:25 +0000
committermh <mh@immerda.ch>2008-05-06 18:38:25 +0000
commit4cf7a843066e4cd1c99ad149a45eeebd094b6963 (patch)
tree339dd9d1a4da1d48a5a2a8c3101ce09166f2268a /manifests
parente83c5afdd92463969fafbb7abb28e5599a4c73de (diff)
extracted selinux stuff, puppet what belongs to the module, into the module, made the rest selinux (and gentoo) aware
Diffstat (limited to 'manifests')
-rw-r--r--manifests/init.pp4
-rw-r--r--manifests/selinux.pp16
2 files changed, 20 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index 8425891..240ffaf 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -13,6 +13,10 @@ class apache {
ubuntu: { include apache::ubuntu }
default: { include apache::base }
}
+
+ if $selinux {
+ include apache::selinux
+ }
}
class apache::base {
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": }
+}