Skip to content

Commit

Permalink
Merge pull request #110 from canonical/tofu-ingress-allow-source-rang…
Browse files Browse the repository at this point in the history
…e-var

Add terraform support for specifying a source range to allow
  • Loading branch information
plars committed Oct 3, 2023
2 parents cc8cea5 + 44ed548 commit ee6fd62
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions terraform/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ resource "juju_application" "ingress" {

config = {
tls-secret-name = var.tls_secret_name
whitelist-source-range = var.nginx_ingress_integrator_charm_whitelist_source_range
}
}

Expand Down
6 changes: 6 additions & 0 deletions terraform/variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,12 @@ variable "db_offer" {
type = string
}

variable "nginx_ingress_integrator_charm_whitelist_source_range" {
description = "Allowed client IP source ranges. The value is a comma separated list of CIDRs."
type = string
default = ""
}

locals {
app_model = "testflinger-${var.environment}"
}

0 comments on commit ee6fd62

Please sign in to comment.