diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-06-24 03:01:50 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-06-24 03:01:50 +0200 |
commit | 31e88617f11109078b44327b2abae8f9768e10f7 (patch) | |
tree | 7138ae1d6376a216e2eaa6658140d2a13e287841 /inventory/host_vars/ch-nic.yml | |
parent | sk-tomnext-hp: final install (diff) |
update ch-router and add ch-nic
Diffstat (limited to 'inventory/host_vars/ch-nic.yml')
-rw-r--r-- | inventory/host_vars/ch-nic.yml | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-nic.yml b/inventory/host_vars/ch-nic.yml new file mode 100644 index 00000000..d26b1c40 --- /dev/null +++ b/inventory/host_vars/ch-nic.yml @@ -0,0 +1,32 @@ +--- +install: + vm: + mem: 768 + numcpu: 2 + autostart: True + disks: + primary: /dev/sda + scsi: + sda: + type: lvm + vg: "{{ hostvars[vm_host.name].host_name }}" + lv: "{{ inventory_hostname }}" + size: 10g + interfaces: + - bridge: br-svc + name: svc0 + +network: + nameservers: "{{ network_zones.svc.dns }}" + domain: "{{ host_domain }}" + systemd_link: + interfaces: "{{ install.interfaces }}" + primary: &_network_primary_ + name: svc0 + address: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets[inventory_hostname]) | ipaddr('address/prefix') }}" + gateway: "{{ network_zones.svc.gateway }}" + static_routes: + - destination: "{{ network_zones.lan.prefix }}" + gateway: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets['ch-gw-lan']) | ipaddr('address') }}" + interfaces: + - *_network_primary_ |