summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2019-08-22 12:02:52 +0200
committerChristian Pointner <equinox@spreadspace.org>2019-08-22 12:02:52 +0200
commitd65c18df8fe4588a2cbf6cc3c19a2f715bb77143 (patch)
tree69f76a755dbcde6b0aa77942cc2a0758e7fcf512
parentadded r3-cccamp19-sw2 (diff)
cccam19: added feedcode vm
-rw-r--r--chaos-at-home/r3-cccamp19-feedcode.yml7
-rw-r--r--inventory/group_vars/r3-cccamp19/network.yml1
-rw-r--r--inventory/host_vars/r3-cccamp19-feedcode.yml31
-rw-r--r--inventory/hosts.ini2
4 files changed, 41 insertions, 0 deletions
diff --git a/chaos-at-home/r3-cccamp19-feedcode.yml b/chaos-at-home/r3-cccamp19-feedcode.yml
new file mode 100644
index 00000000..65485be7
--- /dev/null
+++ b/chaos-at-home/r3-cccamp19-feedcode.yml
@@ -0,0 +1,7 @@
+---
+- name: Basic Setup
+ hosts: r3-cccamp19-feedcode
+ roles:
+ - role: base
+ - role: sshd
+ - role: zsh
diff --git a/inventory/group_vars/r3-cccamp19/network.yml b/inventory/group_vars/r3-cccamp19/network.yml
index 0d252772..39f1f7b4 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-feedcode: 222
r3-cccamp19-gw: 254
mgmt:
diff --git a/inventory/host_vars/r3-cccamp19-feedcode.yml b/inventory/host_vars/r3-cccamp19-feedcode.yml
new file mode 100644
index 00000000..cbe63876
--- /dev/null
+++ b/inventory/host_vars/r3-cccamp19-feedcode.yml
@@ -0,0 +1,31 @@
+---
+vm_host: helene
+
+install:
+ host: "{{ vm_host }}"
+ mem: 6144
+ numcpu: 4
+ disks:
+ primary: /dev/sda
+ scsi:
+ sda:
+ vg: "{{ hostvars[vm_host].host_name }}"
+ lv: "{{ inventory_hostname }}"
+ size: 42g
+ 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 }}"
diff --git a/inventory/hosts.ini b/inventory/hosts.ini
index 46e3ef0f..e35b0da0 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-feedcode host_name=feedcode
###############################
@@ -186,6 +187,7 @@ ch-gw-lan
ch-jump
r3-vex2
r3-cccamp19-flora
+r3-cccamp19-feedcode
[hroot]