summaryrefslogtreecommitdiff
path: root/global/overlay/etc/puppet
diff options
context:
space:
mode:
authorLeif Johansson <leifj@sunet.se>2015-05-08 16:34:38 +0200
committerLeif Johansson <leifj@sunet.se>2015-05-08 16:34:38 +0200
commitd9ae8caa1f5f9fbc1225e55afc5cc7c9c5c97ef5 (patch)
tree3078876d656366b1373e366cccc0bcb45585db61 /global/overlay/etc/puppet
parent3ae2c130873f1a39c9862368ada5070cb3798e49 (diff)
Diffstat (limited to 'global/overlay/etc/puppet')
-rw-r--r--global/overlay/etc/puppet/modules/sunet/manifests/cloudimage.pp5
1 files changed, 3 insertions, 2 deletions
diff --git a/global/overlay/etc/puppet/modules/sunet/manifests/cloudimage.pp b/global/overlay/etc/puppet/modules/sunet/manifests/cloudimage.pp
index feca24b..9e1b879 100644
--- a/global/overlay/etc/puppet/modules/sunet/manifests/cloudimage.pp
+++ b/global/overlay/etc/puppet/modules/sunet/manifests/cloudimage.pp
@@ -1,5 +1,5 @@
define sunet::cloudimage (
- $image_url = 'https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img',
+ $image_url = "https://cloud-images.ubuntu.com/trusty/current/trusty-server-cloudimg-amd64-disk1.img",
$dhcp = true,
$size = "1G",
$bridge = "br0",
@@ -21,7 +21,8 @@ define sunet::cloudimage (
package {'uuid-runtime': ensure => latest }
$image_url_a = split($image_url,"/")
- $image_src = "/var/lib/libvirt/images/$image_url_a[-1]"
+ $image_name = $image_url_a[-1]
+ $image_src = "/var/lib/libvirt/images/${image_name}"
exec {"wget -O${image_src} ${image_url}":
onlyif => "test ! -f ${image_src}"
}