diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-12-05 20:36:20 +0100 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-12-05 20:36:27 +0100 |
commit | a37913ecac336d54c3e75ca5046677efb67d2013 (patch) | |
tree | 5b479ea8ad7dc080f1f556c1338c52c77b0784e5 /inventory/host_vars/ch-testvm-atlas.yml | |
parent | upgrade standalone kubelets to kubernetes 1.19.4 (diff) |
cleanup ch-testvm* and make common playbook work in any case
Diffstat (limited to 'inventory/host_vars/ch-testvm-atlas.yml')
-rw-r--r-- | inventory/host_vars/ch-testvm-atlas.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-testvm-atlas.yml b/inventory/host_vars/ch-testvm-atlas.yml new file mode 100644 index 00000000..e86eb632 --- /dev/null +++ b/inventory/host_vars/ch-testvm-atlas.yml @@ -0,0 +1,32 @@ +--- +install: + vm: + memory: 1G + numcpus: 1 + autostart: False + disks: + primary: /dev/sda + scsi: + sda: + type: lvm + vg: "{{ hostvars[vm_host.name].host_name }}" + lv: "{{ inventory_hostname }}" + size: 5g + interfaces: + - bridge: br-public + name: primary0 + mac: 52:54:00:42:e6:df + +network: + nameservers: "{{ vm_host.network.dns }}" + domain: "{{ host_domain }}" + systemd_link: + interfaces: "{{ install.interfaces }}" + primary: &_network_primary_ + name: primary0 + address: "{{ vm_host.network.bridges.public.prefix | ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address/prefix') }}" + gateway: "{{ vm_host.network.bridges.public.gateway }}" + address6: "{{ vm_host.network.bridges.public.prefix6 | ipaddr(vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address/prefix') }}" + gateway6: "{{ vm_host.network.bridges.public.gateway6 }}" + interfaces: + - *_network_primary_ |