Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

added selinux

git-svn-id: https://svn/ipuppet/trunk/modules/daemontools@1474 d66ca3ae-40d7-4aa7-90d4-87d79ca94279
  • Loading branch information...
commit 84e1f4a358af99b936a9e4eab5aa26ffa33ff1ba 1 parent eaadc4a
mh authored
Showing with 22 additions and 0 deletions.
  1. +4 −0 manifests/init.pp
  2. +18 −0 manifests/selinux.pp
View
4 manifests/init.pp
@@ -9,6 +9,10 @@
gentoo: { include daemontools::gentoo }
default: { include daemontools::base }
}
+
+ if $selinux {
+ include daemontools::selinux
+ }
}
class daemontools::base {
View
18 manifests/selinux.pp
@@ -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] }
+}
+
Please sign in to comment.
Something went wrong with that request. Please try again.