Refactor random vm name;Add subnet key
Some checks reported errors
continuous-integration/drone/push Build encountered an error
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This commit is contained in:
parent
f2b4bfcd53
commit
d2dcc237d9
@ -13,7 +13,7 @@
|
|||||||
datacenter: "{{ hv.datacenter }}"
|
datacenter: "{{ hv.datacenter }}"
|
||||||
folder: "{{ hv.folder }}"
|
folder: "{{ hv.folder }}"
|
||||||
cluster: "{{ hv.cluster }}"
|
cluster: "{{ hv.cluster }}"
|
||||||
name: "{{ kubernetes.clustername | upper }}_{{ community.general.random(seed=item.ip, length=5, numbers=false, special=false) | upper }}"
|
name: "{{ kubernetes.clustername | upper }}_{{ (item.ip | checksum | regex_replace('[0-9]', ''))[0..5] | upper }}"
|
||||||
guest_id: "{{ item.guest_id }}"
|
guest_id: "{{ item.guest_id }}"
|
||||||
hardware:
|
hardware:
|
||||||
memory_mb: 8192
|
memory_mb: 8192
|
||||||
@ -24,7 +24,8 @@
|
|||||||
datastore: "{{ hv.datastore }}"
|
datastore: "{{ hv.datastore }}"
|
||||||
networks:
|
networks:
|
||||||
- name: "{{ hv.network }}"
|
- name: "{{ hv.network }}"
|
||||||
ip: "{{ item.ip }}"
|
ip: "{{ item.ip | ansible.netcommon.ipaddr('address') }}"
|
||||||
|
netmask: "{{ item.ip | ansible.netcommon.ipaddr('netmask') }}"
|
||||||
cdrom:
|
cdrom:
|
||||||
- type: iso
|
- type: iso
|
||||||
iso_path: "[{{ hv.isodatastore }}] {{ item.iso_path }}"
|
iso_path: "[{{ hv.isodatastore }}] {{ item.iso_path }}"
|
||||||
|
Loading…
Reference in New Issue
Block a user