summaryrefslogtreecommitdiff
path: root/global/overlay/etc/puppet/modules/sunet
diff options
context:
space:
mode:
Diffstat (limited to 'global/overlay/etc/puppet/modules/sunet')
-rw-r--r--global/overlay/etc/puppet/modules/sunet/manifests/cloudimage.pp2
1 files changed, 1 insertions, 1 deletions
diff --git a/global/overlay/etc/puppet/modules/sunet/manifests/cloudimage.pp b/global/overlay/etc/puppet/modules/sunet/manifests/cloudimage.pp
index a232b61..826d97a 100644
--- a/global/overlay/etc/puppet/modules/sunet/manifests/cloudimage.pp
+++ b/global/overlay/etc/puppet/modules/sunet/manifests/cloudimage.pp
@@ -24,10 +24,10 @@ define sunet::cloudimage (
$image_url_a = split($image_url,"/")
$image_name = $image_url_a[-1]
$image_src = "/var/lib/libvirt/images/${image_name}"
+ file { "/var/lib/libvirt/images/${name}": ensure => directory } ->
exec {"wget -O${image_src} ${image_url}":
onlyif => "test ! -f ${image_src}"
}
- file { "/var/lib/libvirt/images": ensure => directory } ->
file { "/var/lib/libvirt/images/${name}/${name}-init.sh":
content => template("sunet/cloudimage/mk_cloud_image.erb"),
mode => "0755"