summaryrefslogtreecommitdiff
path: root/roles/vm-install
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2018-01-23 01:06:48 +0100
committerChristian Pointner <equinox@spreadspace.org>2018-01-23 01:06:48 +0100
commit25d599c49271741810d04a6151d38b9b9b9743b2 (patch)
tree762bfb4313bbc77b124157da6eb0627a62315ef6 /roles/vm-install
parentrename kube2016 to emc-stats (diff)
rename k8s-stream group to k8s-emc
Diffstat (limited to 'roles/vm-install')
-rw-r--r--roles/vm-install/templates/libvirt-domain.xml.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/roles/vm-install/templates/libvirt-domain.xml.j2 b/roles/vm-install/templates/libvirt-domain.xml.j2
index 5546fd44..c84b1045 100644
--- a/roles/vm-install/templates/libvirt-domain.xml.j2
+++ b/roles/vm-install/templates/libvirt-domain.xml.j2
@@ -33,7 +33,7 @@
{% for device, lv in vm_install.disks.virtio.items() %}
<disk type='block' device='disk'>
<driver name='qemu' type='raw' cache='none' discard='unmap'/>
- <source dev='/dev/mapper/{{ lv.vg }}-{{ lv.lv | replace('-', '--') }}'/>
+ <source dev='/dev/mapper/{{ lv.vg | replace('-', '--') }}-{{ lv.lv | replace('-', '--') }}'/>
<target dev='{{ device }}' bus='virtio'/>
</disk>
{% endfor %}
@@ -44,7 +44,7 @@
{% for device, lv in vm_install.disks.scsi.items() %}
<disk type='block' device='disk'>
<driver name='qemu' type='raw' cache='none' discard='unmap'/>
- <source dev='/dev/mapper/{{ lv.vg }}-{{ lv.lv | replace('-', '--') }}'/>
+ <source dev='/dev/mapper/{{ lv.vg | replace('-', '--') }}-{{ lv.lv | replace('-', '--') }}'/>
<target dev='{{ device }}' bus='scsi'/>
</disk>
{% endfor %}