summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-router-obsd.yml
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/host_vars/ch-router-obsd.yml')
-rw-r--r--inventory/host_vars/ch-router-obsd.yml14
1 files changed, 6 insertions, 8 deletions
diff --git a/inventory/host_vars/ch-router-obsd.yml b/inventory/host_vars/ch-router-obsd.yml
index 412482de..71137da1 100644
--- a/inventory/host_vars/ch-router-obsd.yml
+++ b/inventory/host_vars/ch-router-obsd.yml
@@ -1,9 +1,6 @@
---
-_vm_host_: ch-gnocchi
-
install:
vm:
- host: "{{ _vm_host_ }}"
mem: 512
numcpu: 1
autostart: True
@@ -12,7 +9,7 @@ install:
virtio:
vda:
type: lvm
- vg: "{{ hostvars[_vm_host_].host_name }}"
+ vg: "{{ hostvars[vm_host.name].host_name }}"
lv: "{{ inventory_hostname }}"
size: 10g
interfaces:
@@ -22,8 +19,9 @@ install:
network:
nameservers: "{{ network_zones.svc.dns }}"
domain: "{{ host_domain }}"
- primary:
- interface: vio0
- ip: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets[inventory_hostname]) | ipaddr('address') }}"
- mask: "{{ network_zones.svc.prefix | ipaddr('netmask') }}"
+ primary: &_network_primary_
+ name: vio0
+ address: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
gateway: "{{ network_zones.svc.gateway }}"
+ interfaces:
+ - *_network_primary_