diff options
author | mh <mh@immerda.ch> | 2008-05-12 19:50:57 +0000 |
---|---|---|
committer | mh <mh@immerda.ch> | 2008-05-12 19:50:57 +0000 |
commit | 7aeeced0339255f5cdc614dd631582d1064a4a8a (patch) | |
tree | 0d04612e8b271ed6cc9d4b3d79e044e46318f3af | |
parent | 9ba9370bf81ab3bb3599e3ec5bc4b5f4388759d5 (diff) |
added selinux stuff
-rw-r--r-- | manifests/init.pp | 4 | ||||
-rw-r--r-- | manifests/selinux.pp | 16 |
2 files changed, 20 insertions, 0 deletions
diff --git a/manifests/init.pp b/manifests/init.pp index 796a2d9..d21176a 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -8,6 +8,10 @@ class mysql::server { gentoo: { include mysql::server::gentoo } default: { include mysql::server::base } } + + if $selinux { + include mysql::selinux + } } class mysql::server::base { diff --git a/manifests/selinux.pp b/manifests/selinux.pp new file mode 100644 index 0000000..14115c7 --- /dev/null +++ b/manifests/selinux.pp @@ -0,0 +1,16 @@ +# manifests/selinux.pp + +class mysql::selinux { + case $operatingsystem { + gentoo: { include mysql::selinux::gentoo } + } +} + +class mysql::selinux::gentoo { + package{'selinux-mysql': + ensure => present, + category => 'sec-policy', + require => Package[mysql], + } + selinux::loadmodule {"mysql": } +} |