Skip to content

Commit

Permalink
Terraform fmt on examples
Browse files Browse the repository at this point in the history
  • Loading branch information
vlandemaine-orange committed Jan 27, 2020
1 parent 58419ac commit e355c39
Show file tree
Hide file tree
Showing 12 changed files with 347 additions and 347 deletions.
172 changes: 86 additions & 86 deletions examples/http_01/main.tf
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module "elb_web" {
source = "terraform-flexibleengine-modules/elb/flexibleengine"
source = "terraform-flexibleengine-modules/elb/flexibleengine"
version = "1.0.0"

loadbalancer_name = "my-http-elb"
Expand All @@ -19,97 +19,97 @@ module "elb_web" {
vip_address = "192.168.13.148"

listeners = [
{
name = "http"
port = 80
protocol = "HTTP"
hasCert = false
},
{
name = "https"
port = 443
protocol = "TERMINATED_HTTPS"
hasCert = true
}
]

pools = [ {
name = "poolhttp"
protocol = "HTTP"
lb_method = "ROUND_ROBIN"
listener_index = 0
},
{
name = "poolhttps"
protocol = "HTTP"
lb_method = "ROUND_ROBIN"
listener_index = 1
}
]
{
name = "http"
port = 80
protocol = "HTTP"
hasCert = false
},
{
name = "https"
port = 443
protocol = "TERMINATED_HTTPS"
hasCert = true
}
]

pools = [{
name = "poolhttp"
protocol = "HTTP"
lb_method = "ROUND_ROBIN"
listener_index = 0
},
{
name = "poolhttps"
protocol = "HTTP"
lb_method = "ROUND_ROBIN"
listener_index = 1
}
]

backends = [
{
name = "backend1"
port = 80
address_index = 0
pool_index = 0
subnet_id = "backend1-subnet-id"
},
{
name = "backend2"
port = 80
address_index = 1
pool_index = 0
subnet_id = "backend1-subnet-id"
},
{
name = "backend3"
port = 443
address_index = 0
pool_index = 1
subnet_id = "backend1-subnet-id"
},
{
name = "backend4"
port = 443
address_index = 1
pool_index = 1
subnet_id = "backend1-subnet-id"
}
]

backends_addresses = ["192.168.13.102","192.168.13.247"]

monitorsHttp = [
{
name = "monitor1"
pool_index = 0
protocol = "HTTP"
delay = 20
timeout = 10
max_retries = 3
url_path = "/check"
http_method = "GET"
expected_codes = "2xx,3xx,4xx"
},
{
name = "monitor2"
pool_index = 1
protocol = "HTTP"
delay = 20
timeout = 10
max_retries = 3
url_path = "/check"
http_method = "GET"
expected_codes = "2xx,3xx,4xx"
}
]
{
name = "backend1"
port = 80
address_index = 0
pool_index = 0
subnet_id = "backend1-subnet-id"
},
{
name = "backend2"
port = 80
address_index = 1
pool_index = 0
subnet_id = "backend1-subnet-id"
},
{
name = "backend3"
port = 443
address_index = 0
pool_index = 1
subnet_id = "backend1-subnet-id"
},
{
name = "backend4"
port = 443
address_index = 1
pool_index = 1
subnet_id = "backend1-subnet-id"
}
]

backends_addresses = ["192.168.13.102", "192.168.13.247"]

monitorsHttp = [
{
name = "monitor1"
pool_index = 0
protocol = "HTTP"
delay = 20
timeout = 10
max_retries = 3
url_path = "/check"
http_method = "GET"
expected_codes = "2xx,3xx,4xx"
},
{
name = "monitor2"
pool_index = 1
protocol = "HTTP"
delay = 20
timeout = 10
max_retries = 3
url_path = "/check"
http_method = "GET"
expected_codes = "2xx,3xx,4xx"
}
]

listeners_whitelist = [
{
enable_whitelist = true
whitelist = "192.168.11.1,192.168.0.1/24,192.168.201.18/8"
listeners_index = 0
whitelist = "192.168.11.1,192.168.0.1/24,192.168.201.18/8"
listeners_index = 0
}
]

Expand Down
4 changes: 2 additions & 2 deletions examples/http_01/parameters.tfvars
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
tenant_name = "eu-west-0"
domain_name = "MY_DOMAIN"
endpoint = "https://iam.eu-west-0.prod-cloud-ocb.orange-business.com/v3"
region = "eu-west-0"
endpoint = "https://iam.eu-west-0.prod-cloud-ocb.orange-business.com/v3"
region = "eu-west-0"
4 changes: 2 additions & 2 deletions examples/http_01/provider.tf
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ provider "flexibleengine" {
tenant_name = var.tenant_name

domain_name = var.domain_name
auth_url = var.endpoint
region = var.region
auth_url = var.endpoint
region = var.region
}
Loading

0 comments on commit e355c39

Please sign in to comment.