aboutsummaryrefslogtreecommitdiffstats
path: root/modules/buildsystem/manifests
diff options
context:
space:
mode:
authorMichael Scherer <misc@mageia.org>2011-08-17 20:30:55 +0000
committerMichael Scherer <misc@mageia.org>2011-08-17 20:30:55 +0000
commit19d26d0c7a3090f0a2739bee30675fe1901b6414 (patch)
tree32e0e71ce697b760c3c5ce7db1435a11749278ca /modules/buildsystem/manifests
parent20e3bb8b732748c5d6d12cc7ee3282bfd6c54c04 (diff)
downloadpuppet-19d26d0c7a3090f0a2739bee30675fe1901b6414.tar
puppet-19d26d0c7a3090f0a2739bee30675fe1901b6414.tar.gz
puppet-19d26d0c7a3090f0a2739bee30675fe1901b6414.tar.bz2
puppet-19d26d0c7a3090f0a2739bee30675fe1901b6414.tar.xz
puppet-19d26d0c7a3090f0a2739bee30675fe1901b6414.zip
split the creation of directory, require the upper directory ( as testing show
the order is not garanted )
Diffstat (limited to 'modules/buildsystem/manifests')
-rw-r--r--modules/buildsystem/manifests/init.pp7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/buildsystem/manifests/init.pp b/modules/buildsystem/manifests/init.pp
index 58411a3d..874b0d7f 100644
--- a/modules/buildsystem/manifests/init.pp
+++ b/modules/buildsystem/manifests/init.pp
@@ -49,10 +49,15 @@ class buildsystem {
}
$location = "/var/www/bs"
- file { ["$location","$location/data"]:
+ file { "$location":
ensure => directory,
}
+ file { "$location/data":
+ ensure => directory,
+ require => File[$location],
+ }
+
apache::vhost_base { "pkgsubmit.$domain":
aliases => { "/uploads" => "$sched_home_dir/uploads" },
location => $location,