diff options
Diffstat (limited to 'host_vars')
-rw-r--r-- | host_vars/kube2016.yaml | 3 | ||||
-rw-r--r-- | host_vars/sk2016.yaml | 2 |
2 files changed, 3 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 }}" diff --git a/host_vars/sk2016.yaml b/host_vars/sk2016.yaml index 91d1854d..449f6860 100644 --- a/host_vars/sk2016.yaml +++ b/host_vars/sk2016.yaml @@ -28,3 +28,5 @@ vm_host: - 213.133.100.100 - 213.133.98.98 - 213.133.99.99 + indices: + kube2016: 200 |