From 4eb4eb8172bc0da34be48d00959ff9557ef48300 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Sun, 25 Nov 2018 01:38:05 +0100 Subject: [PATCH] use global net config for gnoccis --- ansible/host_vars/gnocci0/main.yml | 9 ++++----- ansible/host_vars/gnocci1/main.yml | 9 ++++----- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/ansible/host_vars/gnocci0/main.yml b/ansible/host_vars/gnocci0/main.yml index 21e708c..623ef3c 100644 --- a/ansible/host_vars/gnocci0/main.yml +++ b/ansible/host_vars/gnocci0/main.yml @@ -1,13 +1,12 @@ --- network: - nameservers: - - 10.12.0.10 + nameservers: "{{ net.mgmt.dns }}" domain: realraum.at primary: interface: enp1s0 - ip: 192.168.32.250 - mask: 255.255.255.0 - gateway: 192.168.32.254 + ip: "{{ net.mgmt.prefix | ipaddr(250) | ipaddr('address') }}" + mask: "{{ net.mgmt.prefix | ipaddr('netmask') }}" + gateway: "{{ net.mgmt.gw }}" install: disks: diff --git a/ansible/host_vars/gnocci1/main.yml b/ansible/host_vars/gnocci1/main.yml index 20b3247..537e7d5 100644 --- a/ansible/host_vars/gnocci1/main.yml +++ b/ansible/host_vars/gnocci1/main.yml @@ -1,13 +1,12 @@ --- network: - nameservers: - - 10.12.0.10 + nameservers: "{{ net.mgmt.dns }}" domain: realraum.at primary: interface: enp1s0 - ip: 192.168.32.251 - mask: 255.255.255.0 - gateway: 192.168.32.254 + ip: "{{ net.mgmt.prefix | ipaddr(251) | ipaddr('address') }}" + mask: "{{ net.mgmt.prefix | ipaddr('netmask') }}" + gateway: "{{ net.mgmt.gw }}" install: disks: -- 1.7.10.4