From 0ce6f8f87651b66f62c7bbed68496a4ae831fa11 Mon Sep 17 00:00:00 2001 From: djpbessems Date: Mon, 18 Apr 2022 22:33:11 +0200 Subject: [PATCH] Refactor random vm name #3;Fix ISO paths --- playbook.yml | 2 +- vars/cluster.k3s.yml | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/playbook.yml b/playbook.yml index 2b9a9c2..b77abe1 100644 --- a/playbook.yml +++ b/playbook.yml @@ -13,7 +13,7 @@ datacenter: "{{ hv.datacenter }}" folder: "{{ hv.folder }}" cluster: "{{ hv.cluster }}" - name: "{{ kubernetes.clustername | upper }}_{{ (item.ip | checksum | regex_replace('[0-9]', ''))[:5] | upper }}" + name: "{{ kubernetes.clustername | upper }}_{{ (item.ip | checksum | regex_replace('[0-9]', ''))[-5:] | upper }}" guest_id: "{{ item.guest_id }}" hardware: memory_mb: 8192 diff --git a/vars/cluster.k3s.yml b/vars/cluster.k3s.yml index 294b7d1..ff91a5d 100644 --- a/vars/cluster.k3s.yml +++ b/vars/cluster.k3s.yml @@ -3,11 +3,11 @@ kubernetes: clustername: k3s-dev servers: - ip: 192.168.11.121/24 - iso_path: ubuntu-20.04.1-live-server-amd64.iso + iso_path: ISO-files/ubuntu-20.04.1-live-server-amd64.iso guest_id: ubuntu64Guest - ip: 192.168.11.122/24 - iso_path: ubuntu-20.04.1-live-server-amd64.iso + iso_path: ISO-files/ubuntu-20.04.1-live-server-amd64.iso guest_id: ubuntu64Guest - ip: 192.168.11.123/24 - iso_path: ubuntu-20.04.1-live-server-amd64.iso + iso_path: ISO-files/ubuntu-20.04.1-live-server-amd64.iso guest_id: ubuntu64Guest