summaryrefslogtreecommitdiff
path: root/inventory/host_vars
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2020-06-01 06:41:24 +0200
committerChristian Pointner <equinox@spreadspace.org>2020-06-01 06:41:24 +0200
commit508602b0426bdf1412bd6fb3350fece0cae2e7c8 (patch)
tree10a85d780359d65e67ed3ab45004b808f10cb63c /inventory/host_vars
parentmajor refactoring of users database (diff)
port admin-users role to openbsd and move to core
Diffstat (limited to 'inventory/host_vars')
-rw-r--r--inventory/host_vars/ch-hroottest-obsd.yml29
-rw-r--r--inventory/host_vars/ch-hroottest-vm1.yml2
-rw-r--r--inventory/host_vars/ch-hroottest.yml1
3 files changed, 31 insertions, 1 deletions
diff --git a/inventory/host_vars/ch-hroottest-obsd.yml b/inventory/host_vars/ch-hroottest-obsd.yml
new file mode 100644
index 00000000..c8af9fe1
--- /dev/null
+++ b/inventory/host_vars/ch-hroottest-obsd.yml
@@ -0,0 +1,29 @@
+---
+vm_host: ch-hroottest
+
+install:
+ host: "{{ vm_host }}"
+ mem: 1024
+ numcpu: 1
+ disks:
+ primary: /dev/vda
+ virtio:
+ vda:
+ type: zfs
+ name: root
+ size: 10g
+ interfaces:
+ - bridge: br-public
+ name: vio0
+ autostart: True
+
+network:
+ nameservers: "{{ hostvars[vm_host].vm_host.network.dns }}"
+ domain: "{{ host_domain }}"
+ systemd_link:
+ interfaces: "{{ install.interfaces }}"
+ primary:
+ interface: vio0
+ ip: "{{ hostvars[vm_host].vm_host.network.bridges.public.prefix | ipaddr(hostvars[vm_host].vm_host.network.bridges.public.offsets[inventory_hostname]) | ipaddr('address') }}"
+ mask: "{{ hostvars[vm_host].vm_host.network.bridges.public.prefix | ipaddr('netmask') }}"
+ gateway: "{{ hostvars[vm_host].vm_host.network.bridges.public.prefix | ipaddr('address') }}"
diff --git a/inventory/host_vars/ch-hroottest-vm1.yml b/inventory/host_vars/ch-hroottest-vm1.yml
index 53a910e8..ccb3ca92 100644
--- a/inventory/host_vars/ch-hroottest-vm1.yml
+++ b/inventory/host_vars/ch-hroottest-vm1.yml
@@ -15,7 +15,7 @@ install:
interfaces:
- bridge: br-public
name: primary0
- autostart: True
+ autostart: True
network:
nameservers: "{{ hostvars[vm_host].vm_host.network.dns }}"
diff --git a/inventory/host_vars/ch-hroottest.yml b/inventory/host_vars/ch-hroottest.yml
index e074afbb..080f5306 100644
--- a/inventory/host_vars/ch-hroottest.yml
+++ b/inventory/host_vars/ch-hroottest.yml
@@ -43,6 +43,7 @@ vm_host:
prefix: 192.168.250.254/24
offsets:
ch-hroottest-vm1: 100
+ ch-hroottest-obsd: 101
nat: yes
zfs:
default: