Skip to content

Commit

Permalink
OPENSHIFTP-25: Changes are made to support incerease/decrease of work…
Browse files Browse the repository at this point in the history
…er count

Signed-off-by: Chandan Abhyankar <[email protected]>
  • Loading branch information
Chandan-Abhyankar authored and prb112 committed Jun 17, 2024
1 parent 590d60f commit 0e089b4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
4 changes: 3 additions & 1 deletion modules/2_pvs_prepare/bastion/bastion.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ resource "ibm_pi_instance" "bastion" {
pi_network {
network_id = var.powervs_network_id
}

lifecycle { ignore_changes = all }
}

# Dev Note: injects a delay before a hard-reboot
Expand Down Expand Up @@ -359,4 +361,4 @@ done
EOF
]
}
}
}
2 changes: 1 addition & 1 deletion modules/5_worker/worker.tf
Original file line number Diff line number Diff line change
Expand Up @@ -40,5 +40,5 @@ resource "ibm_pi_instance" "worker" {
name : base64encode("${var.name_prefix}-worker-${count.index}"),
}))

lifecycle { ignore_changes = [pi_user_data] }
lifecycle { ignore_changes = all }
}
3 changes: 3 additions & 0 deletions modules/6_post/post.tf
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,9 @@ bash files/destroy-workers.sh "${self.triggers.vpc_support_server_ip}" "${self.t
EOF
]
}

lifecycle { ignore_changes = all }

}

#command to run ansible playbook on Bastion
Expand Down

0 comments on commit 0e089b4

Please sign in to comment.