diff options
author | mh <mh@immerda.ch> | 2014-02-23 15:17:06 +0100 |
---|---|---|
committer | mh <mh@immerda.ch> | 2014-02-23 15:17:06 +0100 |
commit | bcb25abcb26f7ebb522f3c0dc3288c6a97ccf158 (patch) | |
tree | 091fab6e30f59bdc1ea31007c8006e20c7ccf9fd /manifests/vhost/webdir.pp | |
parent | 266a521842e55c5afdb9fe849c3fe392bb0b4ae2 (diff) |
introduce a datadir for all dynamic hostings
Diffstat (limited to 'manifests/vhost/webdir.pp')
-rw-r--r-- | manifests/vhost/webdir.pp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/manifests/vhost/webdir.pp b/manifests/vhost/webdir.pp index 1e663e5..e0e2546 100644 --- a/manifests/vhost/webdir.pp +++ b/manifests/vhost/webdir.pp @@ -7,6 +7,7 @@ define apache::vhost::webdir( $mode = 0640, $run_mode = 'normal', $manage_docroot = true, + $datadir = true, $documentroot_owner = root, $documentroot_group = apache, $documentroot_mode = 0640, @@ -110,6 +111,14 @@ define apache::vhost::webdir( mode => $documentroot_mode; } } + if $datadir { + file{"${real_path}/data": + ensure => directory, + owner => $real_documentroot_owner, + group => $real_documentroot_group, + mode => '0640'; + } + } case $::operatingsystem { centos: { include apache::logrotate::centos::vhosts } default: { #nothing |