1
0

restructure

This commit is contained in:
michael 2022-10-24 15:50:38 +13:00
parent fb6a488dac
commit d1508efd3f
18 changed files with 62 additions and 11 deletions

View File

@ -0,0 +1 @@
---

View File

@ -0,0 +1,3 @@
---
vhd_template: "kube_template_vda.qcow2"
root_vhd_pool_dir: "/vhds" # No trailing /

View File

@ -0,0 +1,7 @@
---
- name: bare metal os installation
gather_facts: false
hosts: hv00
become: true
roles:
- baremetal

View File

@ -1,7 +1,7 @@
---
- name: Configure lab host
- name: configure hyervisor host
gather_facts: false
hosts: lab
hosts: hv00
become: true
roles:

View File

@ -0,0 +1,7 @@
---
- name: create vm template
hosts: hv00
gather_facts: true
become: true
roles:
- vm_template

View File

@ -4,7 +4,7 @@
gather_facts: true
become: true
roles:
- k8s_vms
- vm_deploy
- name: python bootstrap
hosts: k8s
@ -20,10 +20,3 @@
roles:
- sshd
- firewall
- name: configure control plane
hosts: k8s_control
gather_facts: true
become: false
roles:
- k8s_control

View File

@ -0,0 +1,7 @@
---
- name: configure control plane
hosts: k8s_control
gather_facts: true
become: false
roles:
- k8s_control

View File

@ -0,0 +1,2 @@
---
iso_source:

View File

@ -0,0 +1,3 @@
linux-lts
linux-lts-headers
base

View File

@ -0,0 +1,11 @@
---
- name: attach installation iso as virtual media
- name: boot from installation iso
- name: detect booted ip address
- name: configure disks
- name: sync ntp

View File

@ -0,0 +1,9 @@
[Match]
MACAddress={{ mac_address }}
[Link]
ARP=no
[Network]
DHCP=no
Bond=lacp

View File

@ -0,0 +1 @@
---

View File

@ -0,0 +1,7 @@
---
- name: sysprep the template vhd
when: template_created is changed
ansible.builtin.shell:
cmd: |
virt-sysprep -a {{ root_vhd_pool_dir }}/{{ vhd_template }}