summaryrefslogtreecommitdiff
path: root/inventory/host_vars/ch-jump.yml
diff options
context:
space:
mode:
Diffstat (limited to 'inventory/host_vars/ch-jump.yml')
-rw-r--r--inventory/host_vars/ch-jump.yml16
1 files changed, 8 insertions, 8 deletions
diff --git a/inventory/host_vars/ch-jump.yml b/inventory/host_vars/ch-jump.yml
index 463503cb..954819ba 100644
--- a/inventory/host_vars/ch-jump.yml
+++ b/inventory/host_vars/ch-jump.yml
@@ -1,9 +1,6 @@
---
-_vm_host_: ch-gnocchi
-
install:
vm:
- host: "{{ _vm_host_ }}"
mem: 768
numcpu: 2
autostart: True
@@ -12,7 +9,7 @@ install:
scsi:
sda:
type: lvm
- vg: "{{ hostvars[_vm_host_].host_name }}"
+ vg: "{{ hostvars[vm_host.name].host_name }}"
lv: "{{ inventory_hostname }}"
size: 10g
interfaces:
@@ -26,8 +23,11 @@ network:
domain: "{{ host_domain }}"
systemd_link:
interfaces: "{{ install.interfaces }}"
- primary:
- interface: svc0
- 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: svc0
+ address: "{{ network_zones.svc.prefix | ipaddr(network_zones.svc.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"
gateway: "{{ network_zones.svc.gateway }}"
+ interfaces:
+ - *_network_primary_
+ - name: mgmt0
+ address: "{{ network_zones.mgmt.prefix | ipaddr(network_zones.mgmt.offsets[inventory_hostname]) | ipaddr('address/prefix') }}"