From 508602b0426bdf1412bd6fb3350fece0cae2e7c8 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Mon, 1 Jun 2020 06:41:24 +0200 Subject: port admin-users role to openbsd and move to core --- inventory/host_vars/ch-hroottest-obsd.yml | 29 +++++++++++++++++++++++++++++ inventory/host_vars/ch-hroottest-vm1.yml | 2 +- inventory/host_vars/ch-hroottest.yml | 1 + 3 files changed, 31 insertions(+), 1 deletion(-) create mode 100644 inventory/host_vars/ch-hroottest-obsd.yml (limited to 'inventory/host_vars') 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: -- cgit v1.2.3