Skip to content

Commit

Permalink
Include cluster ID as server tag (#92)
Browse files Browse the repository at this point in the history
  • Loading branch information
bastjan authored Nov 11, 2024
1 parent 313956b commit a2e89bc
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/node-group/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ resource "cloudscale_server" "node" {
}

tags = var.make_adoptable_by_provider ? {
"machine-api-provider-cloudscale_appuio_io_name" : random_id.node[count.index].hex
"machine-api-provider-cloudscale_appuio_io_name" : random_id.node[count.index].hex,
"machine-api-provider-cloudscale_appuio_io_cluster_id" : var.cluster_id,
} : {
}

Expand Down

0 comments on commit a2e89bc

Please sign in to comment.