Skip to content

Commit

Permalink
fix ip conflict in terraform
Browse files Browse the repository at this point in the history
deploy director was trying to use same internal ip for jumpbox and director vms
  • Loading branch information
nader-ziada committed Nov 27, 2024
1 parent 1e9b31a commit 291d9db
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion ci/assets/terraform/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -83,5 +83,5 @@ output "jumpbox_ip" {
}

output "internal_jumpbox_ip" {
value = cidrhost(var.internal_cidr, 3)
value = google_compute_address.jumpbox_internal.address
}
6 changes: 6 additions & 0 deletions ci/assets/terraform/resources.tf
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ resource "google_compute_address" "director_internal" {
subnetwork = google_compute_subnetwork.subnetwork.self_link
}

resource "google_compute_address" "jumpbox_internal" {
name = "${var.prefix}-jumpbox-internal"
address_type = "INTERNAL"
subnetwork = google_compute_subnetwork.subnetwork.self_link
}

resource "google_compute_address" "int_internal" {
count = 3
name = "${var.prefix}-int-internal-${count.index}"
Expand Down
1 change: 1 addition & 0 deletions ci/pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -246,6 +246,7 @@ jobs:
- get: bosh-release
- get: garden-linux-release
- get: bosh-deployment
- get: jumpbox-deployment
- get: bosh-cli-github-release
params:
globs:
Expand Down

0 comments on commit 291d9db

Please sign in to comment.