From 8c967e8ff94380e18a59b5701ece7b5a98513b2d Mon Sep 17 00:00:00 2001 From: mh Date: Sun, 20 Nov 2011 14:55:28 +0100 Subject: include php default dirs if we want to add subdirs --- manifests/defaultdavdbdir.pp | 2 -- 1 file changed, 2 deletions(-) (limited to 'manifests/defaultdavdbdir.pp') diff --git a/manifests/defaultdavdbdir.pp b/manifests/defaultdavdbdir.pp index 8b5e00f..186871c 100644 --- a/manifests/defaultdavdbdir.pp +++ b/manifests/defaultdavdbdir.pp @@ -1,5 +1,3 @@ -# manifests/defaultphpdirs.pp - class apache::defaultdavdbdir { file{'/var/www/dav_db_dir': ensure => directory, -- cgit v1.2.3 From 8d61ad7c8a76adf378a319245d655cf0fce18d25 Mon Sep 17 00:00:00 2001 From: mh Date: Sun, 12 Feb 2012 15:43:28 +0100 Subject: manage selinux stuff --- manifests/defaultdavdbdir.pp | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) (limited to 'manifests/defaultdavdbdir.pp') diff --git a/manifests/defaultdavdbdir.pp b/manifests/defaultdavdbdir.pp index 186871c..c0e2a81 100644 --- a/manifests/defaultdavdbdir.pp +++ b/manifests/defaultdavdbdir.pp @@ -1,7 +1,17 @@ class apache::defaultdavdbdir { - file{'/var/www/dav_db_dir': - ensure => directory, - require => Package['apache'], - owner => root, group => 0, mode => 0755; + file { + '/var/www/dav_db_dir' : + ensure => directory, + require => Package['apache'], + owner => root, + group => 0, + mode => 0755 ; + } + if $::selinux != 'false' { + selinux::fcontext { + ['/var/www/dav_db_dir/.+(/.*)?'] : + setype => 'httpd_var_lib_t', + before => File['/var/www/dav_db_dir'] ; + } } } -- cgit v1.2.3