summaryrefslogtreecommitdiff
path: root/inventory/host_vars
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-12-05 20:36:20 +0100
committerChristian Pointner <equinox@spreadspace.org>2020-12-05 20:36:27 +0100
commita37913ecac336d54c3e75ca5046677efb67d2013 (patch)
tree5b479ea8ad7dc080f1f556c1338c52c77b0784e5 /inventory/host_vars
parentupgrade 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')
-rw-r--r--inventory/host_vars/ch-testvm-atlas.yml (renamed from inventory/host_vars/ch-testvm.yml)0
-rw-r--r--inventory/host_vars/ch-testvm-prometheus.yml33
2 files changed, 33 insertions, 0 deletions
diff --git a/inventory/host_vars/ch-testvm.yml b/inventory/host_vars/ch-testvm-atlas.yml
index e86eb632..e86eb632 100644
--- a/inventory/host_vars/ch-testvm.yml
+++ b/inventory/host_vars/ch-testvm-atlas.yml
diff --git a/inventory/host_vars/ch-testvm-prometheus.yml b/inventory/host_vars/ch-testvm-prometheus.yml
new file mode 100644
index 00000000..597cd134
--- /dev/null
+++ b/inventory/host_vars/ch-testvm-prometheus.yml
@@ -0,0 +1,33 @@
+---
+install_jumphost: ch-jump
+
+install:
+ vm:
+ memory: 1G
+ numcpus: 1
+ autostart: False
+ disks:
+ primary: /dev/sda
+ scsi:
+ sda:
+ type: zfs
+ name: root
+ size: 5g
+ 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_