diff options
Diffstat (limited to 'global/overlay/etc/puppet/modules/sunet/templates/cloudimage')
-rw-r--r-- | global/overlay/etc/puppet/modules/sunet/templates/cloudimage/mk_cloud_image.erb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/global/overlay/etc/puppet/modules/sunet/templates/cloudimage/mk_cloud_image.erb b/global/overlay/etc/puppet/modules/sunet/templates/cloudimage/mk_cloud_image.erb index 7b5b052..2f76078 100644 --- a/global/overlay/etc/puppet/modules/sunet/templates/cloudimage/mk_cloud_image.erb +++ b/global/overlay/etc/puppet/modules/sunet/templates/cloudimage/mk_cloud_image.erb @@ -1,5 +1,7 @@ #!/bin/bash +# do not edit by hand + src_image="<%= @image_src %>" size="<%= @size %>" dhcp="<%= @dhcp ? 'yes' : 'no' %>" @@ -22,8 +24,8 @@ cd "/var/lib/libvirt/cloud-init" id=$(uuidgen) -seed=${id}_seed.img -disk=${id}.img +seed=${hostname}_seed.img +disk=${hostname}.img rm -f ${seed} truncate --size 2M ${seed} |