diff options
author | Christian Pointner <equinox@spreadspace.org> | 2020-06-22 02:37:11 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2020-06-22 02:37:11 +0200 |
commit | 5a35c210ddb64998586b69b921e8d721395f09d5 (patch) | |
tree | 9a65e26f147c59ab379e1cd23a1baf60ac5d5264 /_graveyard_/inventory/host_vars | |
parent | Merge branch 'topic/kubernetes-network-plugins' (diff) | |
parent | converted other physical machines to new network config (diff) |
Merge branch 'topic/network-interfaces-variables-refactoring'
Diffstat (limited to '_graveyard_/inventory/host_vars')
8 files changed, 209 insertions, 0 deletions
diff --git a/_graveyard_/inventory/host_vars/r3-cccamp19-av.yml b/_graveyard_/inventory/host_vars/r3-cccamp19-av.yml new file mode 100644 index 00000000..40524574 --- /dev/null +++ b/_graveyard_/inventory/host_vars/r3-cccamp19-av.yml @@ -0,0 +1,38 @@ +--- +_vm_host_: helene + +install: + vm: + host: "{{ _vm_host_ }}" + mem: 4096 + numcpu: 4 + autostart: True + disks: + primary: /dev/sda + scsi: + sda: + type: lvm + vg: "{{ hostvars[_vm_host_].host_name }}" + lv: "{{ inventory_hostname }}" + size: 10g + interfaces: + - bridge: lan-br + name: lan0 + - bridge: camp19-br + name: camp0 + +network: + nameservers: "{{ network_zones.lan.dns }}" + domain: "{{ host_domain }}" + systemd_link: + interfaces: "{{ install.interfaces }}" + primary: + interface: lan0 + ip: "{{ network_zones.lan.prefix | ipaddr(network_zones.lan.offsets[inventory_hostname]) | ipaddr('address') }}" + mask: "{{ network_zones.lan.prefix | ipaddr('netmask') }}" + gateway: "{{ network_zones.lan.gateway }}" + +install_playbook: r3-cccamp19_vm + +dyndns: + server: ch-pan diff --git a/_graveyard_/inventory/host_vars/r3-cccamp19-dione.yml b/_graveyard_/inventory/host_vars/r3-cccamp19-dione.yml new file mode 100644 index 00000000..47195b1f --- /dev/null +++ b/_graveyard_/inventory/host_vars/r3-cccamp19-dione.yml @@ -0,0 +1,18 @@ +--- +install_interface: eno1 +install_dhcp: true + +install: + efi: true + disks: + primary: /dev/disk/by-id/nvme-SAMSUNG_MZVPW256HEGL-00000_S346NY0HC29501 + +network: + domain: camp.realraum.at + + +base_packages_extra_host: + - vlan + +dyndns: + server: ch-pan diff --git a/_graveyard_/inventory/host_vars/r3-cccamp19-feedcode.yml b/_graveyard_/inventory/host_vars/r3-cccamp19-feedcode.yml new file mode 100644 index 00000000..10f78ebc --- /dev/null +++ b/_graveyard_/inventory/host_vars/r3-cccamp19-feedcode.yml @@ -0,0 +1,33 @@ +--- +_vm_host_: helene + +install: + vm: + host: "{{ _vm_host_ }}" + mem: 6144 + numcpu: 4 + autostart: True + disks: + primary: /dev/sda + scsi: + sda: + type: lvm + vg: "{{ hostvars[_vm_host_].host_name }}" + lv: "{{ inventory_hostname }}" + size: 42g + interfaces: + - bridge: lan-br + name: lan0 + - bridge: camp19-br + name: camp0 + +network: + nameservers: "{{ network_zones.lan.dns }}" + domain: "{{ host_domain }}" + systemd_link: + interfaces: "{{ install.interfaces }}" + primary: + interface: lan0 + ip: "{{ network_zones.lan.prefix | ipaddr(network_zones.lan.offsets[inventory_hostname]) | ipaddr('address') }}" + mask: "{{ network_zones.lan.prefix | ipaddr('netmask') }}" + gateway: "{{ network_zones.lan.gateway }}" diff --git a/_graveyard_/inventory/host_vars/r3-cccamp19-flora.yml b/_graveyard_/inventory/host_vars/r3-cccamp19-flora.yml new file mode 100644 index 00000000..40524574 --- /dev/null +++ b/_graveyard_/inventory/host_vars/r3-cccamp19-flora.yml @@ -0,0 +1,38 @@ +--- +_vm_host_: helene + +install: + vm: + host: "{{ _vm_host_ }}" + mem: 4096 + numcpu: 4 + autostart: True + disks: + primary: /dev/sda + scsi: + sda: + type: lvm + vg: "{{ hostvars[_vm_host_].host_name }}" + lv: "{{ inventory_hostname }}" + size: 10g + interfaces: + - bridge: lan-br + name: lan0 + - bridge: camp19-br + name: camp0 + +network: + nameservers: "{{ network_zones.lan.dns }}" + domain: "{{ host_domain }}" + systemd_link: + interfaces: "{{ install.interfaces }}" + primary: + interface: lan0 + ip: "{{ network_zones.lan.prefix | ipaddr(network_zones.lan.offsets[inventory_hostname]) | ipaddr('address') }}" + mask: "{{ network_zones.lan.prefix | ipaddr('netmask') }}" + gateway: "{{ network_zones.lan.gateway }}" + +install_playbook: r3-cccamp19_vm + +dyndns: + server: ch-pan diff --git a/_graveyard_/inventory/host_vars/r3-cccamp19-gw.yml b/_graveyard_/inventory/host_vars/r3-cccamp19-gw.yml new file mode 100644 index 00000000..c6150b4d --- /dev/null +++ b/_graveyard_/inventory/host_vars/r3-cccamp19-gw.yml @@ -0,0 +1,3 @@ +--- +dyndns: + server: ch-pan diff --git a/_graveyard_/inventory/host_vars/r3-cccamp19-helene.yml b/_graveyard_/inventory/host_vars/r3-cccamp19-helene.yml new file mode 100644 index 00000000..104a5eda --- /dev/null +++ b/_graveyard_/inventory/host_vars/r3-cccamp19-helene.yml @@ -0,0 +1,18 @@ +--- +install_interface: eno1 +install_dhcp: true + +install: + efi: true + disks: + primary: /dev/disk/by-id/nvme-SAMSUNG_MZVPW256HEGL-00000_S346NB0J803346 + +network: + domain: camp.realraum.at + + +base_packages_extra_host: + - vlan + +dyndns: + server: ch-pan diff --git a/_graveyard_/inventory/host_vars/r3-cccamp19-sw0.yml b/_graveyard_/inventory/host_vars/r3-cccamp19-sw0.yml new file mode 100644 index 00000000..5b01d940 --- /dev/null +++ b/_graveyard_/inventory/host_vars/r3-cccamp19-sw0.yml @@ -0,0 +1,23 @@ +--- +switch_mgmt_zone: "{{ network_zones.mgmt }}" +switch_mgmt_interface: "Gi1/0/28" + +switch_vlans: "{{ switch_vlans_yaml | from_yaml }}" +switch_vlans_yaml: | + {% for zone_name in network_zones.keys() %} + - name: "{{ zone_name }}" + id: "{{ network_zones[zone_name].vlan }}" + {% endfor %} + +switch_interfaces: "{{ switch_interfaces_yaml | from_yaml }}" +switch_interfaces_yaml: | + - spec: range Te1/0/1-4 + vlan: {{ network_zones['cccamp19'].vlan }} + - spec: range Gi1/0/5-16 + vlan: {{ network_zones['cccamp19'].vlan }} + + - spec: range Gi1/0/17-24 + vlan: {{ network_zones['protected'].vlan }} + + - spec: range Gi1/0/25-28 + vlan: {{ network_zones['mgmt'].vlan }} diff --git a/_graveyard_/inventory/host_vars/r3-cccamp19-verr.yml b/_graveyard_/inventory/host_vars/r3-cccamp19-verr.yml new file mode 100644 index 00000000..f4e70d57 --- /dev/null +++ b/_graveyard_/inventory/host_vars/r3-cccamp19-verr.yml @@ -0,0 +1,38 @@ +--- +_vm_host_: helene + +install: + vm: + host: "{{ _vm_host_ }}" + mem: 4096 + numcpu: 4 + autostart: True + disks: + primary: /dev/sda + scsi: + sda: + type: lvm + vg: "{{ hostvars[_vm_host_].host_name }}" + lv: "{{ inventory_hostname }}" + size: 20g + interfaces: + - bridge: lan-br + name: lan0 + - bridge: camp19-br + name: camp0 + +network: + nameservers: "{{ network_zones.lan.dns }}" + domain: "{{ host_domain }}" + systemd_link: + interfaces: "{{ install.interfaces }}" + primary: + interface: lan0 + ip: "{{ network_zones.lan.prefix | ipaddr(network_zones.lan.offsets[inventory_hostname]) | ipaddr('address') }}" + mask: "{{ network_zones.lan.prefix | ipaddr('netmask') }}" + gateway: "{{ network_zones.lan.gateway }}" + +install_playbook: r3-cccamp19_vm + +dyndns: + server: ch-pan |