Permalink
Browse files

added selinux

git-svn-id: https://svn/ipuppet/trunk/modules/daemontools@1474 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
  • Loading branch information...
1 parent eaadc4a commit 84e1f4a358af99b936a9e4eab5aa26ffa33ff1ba mh committed May 16, 2008
Showing with 22 additions and 0 deletions.
  1. +4 −0 manifests/init.pp
  2. +18 −0 manifests/selinux.pp
View
@@ -9,6 +9,10 @@
gentoo: { include daemontools::gentoo }
default: { include daemontools::base }
}
+
+ if $selinux {
+ include daemontools::selinux
+ }
}
class daemontools::base {
View
@@ -0,0 +1,18 @@
+# manifests/selinux.pp
+
+class daemontools::selinux {
+ case $operatingsystem {
+ gentoo: { include daemontools::selinux::gentoo }
+ default: { info("No selinux stuff yet defined for your operatingsystem") }
+ }
+}
+
+class daemontools::selinux::gentoo {
+ package{'selinux-daemontools':
+ ensure => present,
+ category => 'sec-policy',
+ require => Package[daemontools],
+ }
+ selinux::loadmodule {"daemontools": require => Package[selinux-daemontools] }
+}
+

0 comments on commit 84e1f4a

Please sign in to comment.