summaryrefslogtreecommitdiff
path: root/host_vars/kube2016.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'host_vars/kube2016.yaml')
-rw-r--r--host_vars/kube2016.yaml3
1 files changed, 1 insertions, 2 deletions
diff --git a/host_vars/kube2016.yaml b/host_vars/kube2016.yaml
index f174ff3b..fa2d8d1d 100644
--- a/host_vars/kube2016.yaml
+++ b/host_vars/kube2016.yaml
@@ -1,6 +1,5 @@
---
vm_install_host: sk2016
-vm_network_primary_address_index: 200
vm_install:
host: "{{ vm_install_host }}"
@@ -24,7 +23,7 @@ vm_network:
interfaces: "{{ vm_install.interfaces }}"
primary:
interface: primary0
- ip: "{{ (hostvars[vm_install_host].vm_host.network.ip+'/'+hostvars[vm_install_host].vm_host.network.mask) | ipaddr(vm_network_primary_address_index) | ipaddr('address') }}"
+ ip: "{{ (hostvars[vm_install_host].vm_host.network.ip+'/'+hostvars[vm_install_host].vm_host.network.mask) | ipaddr(hostvars[vm_install_host].vm_host.network.indices[inventory_hostname]) | ipaddr('address') }}"
mask: "{{ hostvars[vm_install_host].vm_host.network.mask }}"
gateway: "{{ hostvars[vm_install_host].vm_host.network.ip }}"
nameservers: "{{ hostvars[vm_install_host].vm_host.network.nameservers }}"