Skip to content

Commit

Permalink
fix: set the correct index for updating the last server
Browse files Browse the repository at this point in the history
  • Loading branch information
Juanadelacuesta committed Feb 20, 2025
1 parent 4a31e55 commit e7fdb38
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions enos/modules/upgrade_servers/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -125,12 +125,10 @@ resource "enos_local_exec" "second_leader_verification" {
// used to restore the cluster after the restart, because it will be the most
// recent available, the resulting file wont be used.
resource "enos_local_exec" "take_third_cluster_snapshot" {
depends_on = [enos_local_exec.first_leader_verification]

environment = local.nomad_env
depends_on = [enos_local_exec.second_leader_verification]

inline = [
"nomad operator snapshot save -stale -address https://${var.servers[2]}:4646 ${random_pet.upgrade.id}-1.snap",
"nomad operator snapshot save -stale -address https://${var.servers[2]}:4646 ${random_pet.upgrade.id}-2.snap",
]
}

Expand Down

0 comments on commit e7fdb38

Please sign in to comment.