summaryrefslogtreecommitdiff
path: root/global/overlay/etc/puppet/modules/sunet
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2015-05-09 16:14:39 +0200
committerLeif Johansson <leifj@sunet.se>2015-05-09 16:14:39 +0200
commit7913a465d292d2e90d52de061e3ff733ea4a8eaa (patch)
tree0156135c6665e95b8860eafd5b2eda98b0b1a41a /global/overlay/etc/puppet/modules/sunet
parent81c7f88b9655c1c0bfb9de6fa8efaa3e1698b3cb (diff)
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"