Skip to content

Commit

Permalink
Add triggers to null_resource
Browse files Browse the repository at this point in the history
- This will run create_universe.sh whenever there is change in nodes

Signed-off-by: Bhavin Gandhi <bhavin7392@gmail.com>
  • Loading branch information
bhavin192 committed Jul 16, 2020
1 parent 0c873d9 commit 2417f3e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,11 @@ locals {
}

resource "null_resource" "create_yugabyte_universe" {
# Define the trigger condition to run the provisioner block
triggers = {
cluster_instance_ids = "${join(",", google_compute_instance.yugabyte_node.*.id)}"
}

depends_on = [google_compute_instance.yugabyte_node]

provisioner "local-exec" {
Expand Down

0 comments on commit 2417f3e

Please sign in to comment.