From f6cc316cb1b4c3e4c8671975ff03b1651f9f4409 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timo=20M=E4kinen?= Date: Fri, 14 Jun 2013 07:34:19 +0300 Subject: [PATCH] ldap: Style fixes. --- ldap/manifests/init.pp | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/ldap/manifests/init.pp b/ldap/manifests/init.pp index 81a6e4f..51a23b7 100644 --- a/ldap/manifests/init.pp +++ b/ldap/manifests/init.pp @@ -530,16 +530,14 @@ class ldap::server { } } - if $::selinux == "true" { - selinux::manage_fcontext { "/srv/ldap(/.*)?": + selinux::manage_fcontext { "/srv/ldap(/.*)?": + type => "slapd_db_t", + before => File["/srv/ldap"], + } + if $ldap_datadir { + selinux::manage_fcontext { "${ldap_datadir}(/.*)?": type => "slapd_db_t", - before => File["/srv/ldap"], - } - if $ldap_datadir { - selinux::manage_fcontext { "${ldap_datadir}(/.*)?": - type => "slapd_db_t", - before => File[$ldap_datadir], - } + before => File[$ldap_datadir], } }