diff --git a/infrastructure/create-resources/templates/hosts.tftpl b/infrastructure/create-resources/templates/hosts.tftpl index 23a6cb6..ddbe71f 100644 --- a/infrastructure/create-resources/templates/hosts.tftpl +++ b/infrastructure/create-resources/templates/hosts.tftpl @@ -1,11 +1,11 @@ [serverctl_master_hosts] %{ for ip in serverctl_masters ~} -${ip} ansible_host=${ip} wireguard_ip=${cidrhost("192.168.0.0/24", index(serverctl_mesh_nodes, ip) + 1)} +${ip} ansible_host=${ip} wireguard_ip=${cidrhost("192.168.0.0/24", index(serverctl_masters, ip) + 1)} %{ endfor ~} [serverctl_node_hosts] %{ for ip in serverctl_nodes ~} -${ip} ansible_host=${ip} wireguard_ip=${cidrhost("192.168.0.0/24", index(serverctl_mesh_nodes, ip) + 1)} +${ip} ansible_host=${ip} wireguard_ip=${cidrhost("192.168.1.0/24", index(serverctl_nodes, ip) + 1)} %{ endfor ~} [serverctl_cluster:children]