From 6e8e1ca3d60180979e4caf372c67a4492c9db6c1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Sun, 13 May 2012 19:50:29 +0300 Subject: [PATCH] Added CentOS 5 support to selinux::module::devel. --- selinux/manifests/init.pp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/selinux/manifests/init.pp b/selinux/manifests/init.pp index f26c4cf..7c43d13 100644 --- a/selinux/manifests/init.pp +++ b/selinux/manifests/init.pp @@ -258,6 +258,15 @@ class selinux::module::devel { include selinux::tools + if $::operatingsystem == "CentOS" { + if $::operatingsystemrelease =~ /^5\.[0-9]/ { + package { "selinux-policy-devel": + ensure => installed, + before => File["/usr/local/src/selinux"], + } + } + } + file { "/usr/local/src/selinux": ensure => directory, mode => "0755",