From ccacd19e20d424ed2bf7a74c53ecb4177ead02b9 Mon Sep 17 00:00:00 2001 From: Thomas Backlund Date: Thu, 3 Mar 2016 22:54:30 +0200 Subject: puppet does not use mkdir -p --- deployment/websites/manifests/www.pp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'deployment/websites/manifests/www.pp') diff --git a/deployment/websites/manifests/www.pp b/deployment/websites/manifests/www.pp index a76b6739..ecff73e6 100644 --- a/deployment/websites/manifests/www.pp +++ b/deployment/websites/manifests/www.pp @@ -15,14 +15,19 @@ class websites::www { source => $git_location, } - file { "${vhostdir}/var/tmp/cache": + file { [ "${vhostdir}/var", + "${vhostdir}/var/tmp", + "${vhostdir}/var/tmp/cache" ] : ensure => directory, group => $apache::var::apache_group, mode => '0660', require => Git::Snapshot[$vhostdir], } - file { "${vhostdir}/_nav/var/tmp/cache": + file { [ "${vhostdir}/_nav", + "${vhostdir}/_nav/var", + "${vhostdir}/_nav/var/tmp", + "${vhostdir}/_nav/var/tmp/cache" ] : ensure => directory, group => $apache::var::apache_group, mode => '0660', -- cgit v1.2.1