Skip to content

Commit

Permalink
feat(lh-79148): make terraform-provider-cdo work on India and Austral…
Browse files Browse the repository at this point in the history
…ia (#135)
  • Loading branch information
siddhuwarrier authored Apr 30, 2024
1 parent c764c62 commit 786b2ae
Show file tree
Hide file tree
Showing 15 changed files with 15 additions and 15 deletions.
2 changes: 1 addition & 1 deletion provider/examples/data-sources/asa/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}

provider "cdo" {
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com>"
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com|https://aus.cdo.cisco.com|https://in.cdo.cisco.com>"
api_token = "<replace-with-api-token-generated-from-cdo>"
}

Expand Down
2 changes: 1 addition & 1 deletion provider/examples/data-sources/cdfmc/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}

provider "cdo" {
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com>"
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com|https://aus.cdo.cisco.com|https://in.cdo.cisco.com>"
api_token = "<replace-with-api-token-generated-from-cdo>"
}

Expand Down
2 changes: 1 addition & 1 deletion provider/examples/data-sources/ios/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}

provider "cdo" {
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com>"
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com|https://aus.cdo.cisco.com|https://in.cdo.cisco.com>"
api_token = "<replace-with-api-token-generated-from-cdo>"
}

Expand Down
2 changes: 1 addition & 1 deletion provider/examples/data-sources/tenant/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}

provider "cdo" {
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com>"
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com|https://aus.cdo.cisco.com|https://in.cdo.cisco.com>"
api_token = "<replace-with-api-token-generated-from-cdo>"
}

Expand Down
2 changes: 1 addition & 1 deletion provider/examples/data-sources/tenantsettings/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}

provider "cdo" {
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com>"
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com|https://aus.cdo.cisco.com|https://in.cdo.cisco.com>"
api_token = "<replace-with-api-token-generated-from-cdo>"
}

Expand Down
2 changes: 1 addition & 1 deletion provider/examples/data-sources/user/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}

provider "cdo" {
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com>"
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com|https://aus.cdo.cisco.com|https://in.cdo.cisco.com>"
api_token = "<replace-with-api-token-generated-from-cdo>"
}

Expand Down
2 changes: 1 addition & 1 deletion provider/examples/resources/asa/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ terraform {
}

provider "cdo" {
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com>"
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com|https://aus.cdo.cisco.com|https://in.cdo.cisco.com>"
api_token = file("${path.module}/api_token.txt")
}
2 changes: 1 addition & 1 deletion provider/examples/resources/duoadminpanel/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ terraform {
}

provider "cdo" {
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com>"
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com|https://aus.cdo.cisco.com|https://in.cdo.cisco.com>"
api_token = file("${path.module}/api_token.txt")
}
2 changes: 1 addition & 1 deletion provider/examples/resources/ftd/providers.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@ terraform {
}

provider "cdo" {
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com>"
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com|https://aus.cdo.cisco.com|https://in.cdo.cisco.com>"
api_token = file("${path.module}/api_token.txt")
}
2 changes: 1 addition & 1 deletion provider/examples/resources/ios/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}

provider "cdo" {
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com>"
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com|https://aus.cdo.cisco.com|https://in.cdo.cisco.com>"
api_token = "<replace-with-api-token-generated-from-cdo>"
}

Expand Down
2 changes: 1 addition & 1 deletion provider/examples/resources/sdc/sdc_example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}

provider "cdo" {
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com>"
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com|https://aus.cdo.cisco.com|https://in.cdo.cisco.com>"
api_token = "<replace-with-api-token-generated-from-cdo>"
}

Expand Down
2 changes: 1 addition & 1 deletion provider/examples/resources/tenantsettings/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}

provider "cdo" {
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com>"
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com|https://aus.cdo.cisco.com|https://in.cdo.cisco.com>"
api_token = "<replace-with-api-token-generated-from-cdo>"
}

Expand Down
2 changes: 1 addition & 1 deletion provider/examples/resources/user/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}

provider "cdo" {
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com>"
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com|https://aus.cdo.cisco.com|https://in.cdo.cisco.com>"
api_token = "<replace-with-api-token-generated-from-cdo>"
}

Expand Down
2 changes: 1 addition & 1 deletion provider/examples/resources/user_api_token/example.tf
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ terraform {
}

provider "cdo" {
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com>"
base_url = "<https://www.defenseorchestrator.com|https://www.defenseorchestrator.eu|https://apj.cdo.cisco.com|https://aus.cdo.cisco.com|https://in.cdo.cisco.com>"
api_token = "<replace-with-api-token-generated-from-cdo>"
}

Expand Down
2 changes: 1 addition & 1 deletion provider/internal/provider/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ func (p *CdoProvider) Schema(ctx context.Context, req provider.SchemaRequest, re
MarkdownDescription: "The base CDO URL. This is the URL you enter when logging into your CDO account.",
Required: true,
Validators: []validator.String{
stringvalidator.OneOf("https://www.defenseorchestrator.com", "https://www.defenseorchestrator.eu", "https://apj.cdo.cisco.com", "https://staging.dev.lockhart.io", "https://ci.dev.lockhart.io", "https://scale.dev.lockhart.io", "http://localhost:9000"),
stringvalidator.OneOf("https://www.defenseorchestrator.com", "https://www.defenseorchestrator.eu", "https://apj.cdo.cisco.com", "https://staging.dev.lockhart.io", "https://ci.dev.lockhart.io", "https://scale.dev.lockhart.io", "http://localhost:9000", "https://aus.cdo.cisco.com", "https://in.cdo.cisco.com"),
},
},
},
Expand Down

0 comments on commit 786b2ae

Please sign in to comment.