Rebase to ISO;Add automatic name generation
Some checks reported errors
continuous-integration/drone/push Build encountered an error

This commit is contained in:
Danny Bessems 2022-04-18 15:47:06 +02:00
parent 4f9a3b414b
commit e2b2e78eb8
3 changed files with 11 additions and 5 deletions

View File

@ -13,8 +13,11 @@
datacenter: "{{ hv.datacenter }}"
folder: "{{ hv.folder }}"
cluster: "{{ hv.cluster }}"
name: "{{ item.ip }}"
template: "{{ item.template }}"
name: "{{ kubernetes.clustername }}_{{ lookup('community.general.random_string', length=5, upper=true, numbers=false, special=false) }}"
cdrom:
type: iso
iso_path: "[{{ hv.isodatastore }}] {{ item.iso_path }}"
# template: "{{ item.template }}"
state: poweredon
# customization_spec: "{{ customization_spec }}"
delegate_to: localhost

View File

@ -6,4 +6,5 @@ hv:
folder: Development
cluster: Cluster.Legacy
datastore: NAS01.RAID5
isodatastore: ESX00.SSD03
network: LAN

View File

@ -1,8 +1,10 @@
---
kubernetes:
clustername: k3s-dev
servers:
- ip: 192.168.11.121
template: xyz
iso_path: ubuntu-20.04.1-live-server-amd64.iso
- ip: 192.168.11.122
template: abc
iso_path: ubuntu-20.04.1-live-server-amd64.iso
- ip: 192.168.11.123
template: pqr
iso_path: ubuntu-20.04.1-live-server-amd64.iso