15 lines
349 B
Django/Jinja
15 lines
349 B
Django/Jinja
{% for image in images -%}
|
|
---
|
|
apiVersion: harvesterhci.io/v1beta1
|
|
kind: VirtualMachineImage
|
|
metadata:
|
|
name: {{ salt['random.hash'](image, 'md5')[-10:] }}
|
|
namespace: default
|
|
spec:
|
|
displayName: {{ image }}
|
|
pvcName: ""
|
|
pvcNamespace: ""
|
|
sourceType: download
|
|
url: http://{{ pillar['network']['ip'] }}/images/suse/{{ image }}
|
|
{% endfor -%}
|