.
This commit is contained in:
14
salt/states/tlu-harvester/files/suse-images.yaml.jinja
Normal file
14
salt/states/tlu-harvester/files/suse-images.yaml.jinja
Normal file
@@ -0,0 +1,14 @@
|
||||
{% 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 -%}
|
Reference in New Issue
Block a user