diff options
author | Christian Pointner <equinox@spreadspace.org> | 2019-08-22 20:38:17 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2019-08-22 20:38:17 +0200 |
commit | f043c0dee8aefd0aa2011ccbebe6df899cd8ef48 (patch) | |
tree | 93ecb5c9b3c083423da6ab464b430ba8bc467555 | |
parent | cccam19: added feedcode vm (diff) |
cccamp19: added verr vm
-rw-r--r-- | chaos-at-home/r3-cccamp19-verr.yml | 8 | ||||
-rw-r--r-- | inventory/group_vars/r3-cccamp19/network.yml | 1 | ||||
-rw-r--r-- | inventory/host_vars/ch-pan.yml | 1 | ||||
-rw-r--r-- | inventory/host_vars/r3-cccamp19-verr.yml | 34 | ||||
-rw-r--r-- | inventory/hosts.ini | 2 |
5 files changed, 46 insertions, 0 deletions
diff --git a/chaos-at-home/r3-cccamp19-verr.yml b/chaos-at-home/r3-cccamp19-verr.yml new file mode 100644 index 00000000..187d76ad --- /dev/null +++ b/chaos-at-home/r3-cccamp19-verr.yml @@ -0,0 +1,8 @@ +--- +- name: Basic Setup + hosts: r3-cccamp19-verr + roles: + - role: base + - role: sshd + - role: zsh + - role: dyndns/client diff --git a/inventory/group_vars/r3-cccamp19/network.yml b/inventory/group_vars/r3-cccamp19/network.yml index 39f1f7b4..e0a83065 100644 --- a/inventory/group_vars/r3-cccamp19/network.yml +++ b/inventory/group_vars/r3-cccamp19/network.yml @@ -16,6 +16,7 @@ network_zones: dione: 200 helene: 201 r3-cccamp19-flora: 220 + r3-cccamp19-verr: 221 r3-cccamp19-feedcode: 222 r3-cccamp19-gw: 254 diff --git a/inventory/host_vars/ch-pan.yml b/inventory/host_vars/ch-pan.yml index 9c7324ef..e9bfaf4c 100644 --- a/inventory/host_vars/ch-pan.yml +++ b/inventory/host_vars/ch-pan.yml @@ -6,5 +6,6 @@ dyndns: ele-media: elemedia r3-cccamp19-gw: r3-cccamp19-gw r3-cccamp19-flora: r3-cccamp19-flora + r3-cccamp19-verr: r3-cccamp19-verr dione: r3-cccamp19-dione helene: r3-cccamp19-helene diff --git a/inventory/host_vars/r3-cccamp19-verr.yml b/inventory/host_vars/r3-cccamp19-verr.yml new file mode 100644 index 00000000..511585c0 --- /dev/null +++ b/inventory/host_vars/r3-cccamp19-verr.yml @@ -0,0 +1,34 @@ +--- +vm_host: helene + +install: + host: "{{ vm_host }}" + mem: 4096 + numcpu: 4 + disks: + primary: /dev/sda + scsi: + sda: + vg: "{{ hostvars[vm_host].host_name }}" + lv: "{{ inventory_hostname }}" + size: 20g + interfaces: + - bridge: lan-br + name: lan0 + - bridge: camp19-br + name: camp0 + autostart: True + +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.gw }}" + +dyndns: + server: ch-pan diff --git a/inventory/hosts.ini b/inventory/hosts.ini index e35b0da0..1bd2d5f1 100644 --- a/inventory/hosts.ini +++ b/inventory/hosts.ini @@ -67,6 +67,7 @@ host_domain=camp.realraum.at r3-cccamp19-gw r3-cccamp19-sw0 ansible_host=192.168.41.200 ansible_port=22 r3-cccamp19-flora host_name=flora +r3-cccamp19-verr host_name=verr r3-cccamp19-feedcode host_name=feedcode @@ -187,6 +188,7 @@ ch-gw-lan ch-jump r3-vex2 r3-cccamp19-flora +r3-cccamp19-verr r3-cccamp19-feedcode |