From f76d8d081e4487aaf4e2442a9e2b96e999643780 Mon Sep 17 00:00:00 2001 From: james-otten Date: Wed, 21 Aug 2024 22:46:46 -0400 Subject: [PATCH] one more value --- terraform/mesh_cluster/ansible.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/mesh_cluster/ansible.tf b/terraform/mesh_cluster/ansible.tf index 3ec0c5a..701f9b5 100644 --- a/terraform/mesh_cluster/ansible.tf +++ b/terraform/mesh_cluster/ansible.tf @@ -38,7 +38,7 @@ resource "ansible_group" "lb" { # declare your hosts here resource "ansible_host" "meshmgr" { - count = 1 + count = length(var.mesh_mgr_ips) name = var.mesh_mgr_ips[count.index] groups = [ansible_group.mgrs.name] variables = { @@ -47,7 +47,7 @@ resource "ansible_host" "meshmgr" { } resource "ansible_host" "meshworker" { - count = 3 + count = length(var.mesh_ips) name = var.mesh_ips[count.index] groups = [ansible_group.workers.name] variables = {