-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: run terraform fmt against all source files
- Loading branch information
Showing
65 changed files
with
2,660 additions
and
2,660 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
module "wbaas-config" { | ||
source = "./../../modules/config-map/wbaas-ui-config" | ||
|
||
cname_record = "sites-1.dyna.wbaas.localhost." | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
provider "kubernetes" { | ||
config_path = "~/.kube/config" | ||
config_context = "minikube-wbaas" | ||
config_context = "minikube-wbaas" | ||
} | ||
|
||
provider "helm" { | ||
kubernetes { | ||
config_path = "~/.kube/config" | ||
config_path = "~/.kube/config" | ||
config_context = "minikube" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,34 @@ | ||
variable "sql-passwords" { | ||
type = set(string) | ||
type = set(string) | ||
description = "SQL passwords to create and send to k8s as secrets" | ||
default = [ | ||
"root", | ||
"replication", | ||
"api", | ||
"mediawiki-db-manager", | ||
"backup-manager", | ||
] | ||
"root", | ||
"replication", | ||
"api", | ||
"mediawiki-db-manager", | ||
"backup-manager", | ||
] | ||
} | ||
|
||
variable "recaptcha_v3_dev_site_key" { | ||
type = string | ||
type = string | ||
description = "Site key to access recaptcha v3" | ||
sensitive = true | ||
sensitive = true | ||
} | ||
|
||
variable "recaptcha_v3_dev_secret" { | ||
type = string | ||
type = string | ||
description = "Secret key to access recaptcha v3" | ||
sensitive = true | ||
sensitive = true | ||
} | ||
variable "recaptcha_v2_dev_site_key" { | ||
type = string | ||
type = string | ||
description = "Site key to access recaptcha v2" | ||
sensitive = true | ||
sensitive = true | ||
} | ||
|
||
variable "recaptcha_v2_dev_secret" { | ||
type = string | ||
type = string | ||
description = "Secret key to access recaptcha v2" | ||
sensitive = true | ||
sensitive = true | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,69 +1,69 @@ | ||
resource "google_dns_managed_zone" "cloud" { | ||
description = "Zone for wikibase.cloud" | ||
dns_name = "wikibase.cloud." # TODO: Make this a variable. | ||
name = "wikibase-cloud-zone" | ||
visibility = "public" | ||
description = "Zone for wikibase.cloud" | ||
dns_name = "wikibase.cloud." # TODO: Make this a variable. | ||
name = "wikibase-cloud-zone" | ||
visibility = "public" | ||
} | ||
|
||
resource "google_dns_record_set" "cloud-NS" { | ||
managed_zone = google_dns_managed_zone.cloud.name | ||
name = google_dns_managed_zone.cloud.dns_name | ||
rrdatas = [ | ||
"ns-cloud-b1.googledomains.com.", | ||
"ns-cloud-b2.googledomains.com.", | ||
"ns-cloud-b3.googledomains.com.", | ||
"ns-cloud-b4.googledomains.com.", | ||
] | ||
ttl = 21600 | ||
type = "NS" | ||
managed_zone = google_dns_managed_zone.cloud.name | ||
name = google_dns_managed_zone.cloud.dns_name | ||
rrdatas = [ | ||
"ns-cloud-b1.googledomains.com.", | ||
"ns-cloud-b2.googledomains.com.", | ||
"ns-cloud-b3.googledomains.com.", | ||
"ns-cloud-b4.googledomains.com.", | ||
] | ||
ttl = 21600 | ||
type = "NS" | ||
} | ||
resource "google_dns_record_set" "cloud-SOA" { | ||
managed_zone = google_dns_managed_zone.cloud.name | ||
name = google_dns_managed_zone.cloud.dns_name | ||
rrdatas = [ | ||
"ns-cloud-b1.googledomains.com. cloud-dns-hostmaster.google.com. 1 21600 3600 259200 300", | ||
] | ||
ttl = 21600 | ||
type = "SOA" | ||
managed_zone = google_dns_managed_zone.cloud.name | ||
name = google_dns_managed_zone.cloud.dns_name | ||
rrdatas = [ | ||
"ns-cloud-b1.googledomains.com. cloud-dns-hostmaster.google.com. 1 21600 3600 259200 300", | ||
] | ||
ttl = 21600 | ||
type = "SOA" | ||
} | ||
|
||
resource "google_dns_record_set" "cloud-A" { | ||
managed_zone = google_dns_managed_zone.cloud.name | ||
name = google_dns_managed_zone.cloud.dns_name | ||
rrdatas = [ | ||
google_compute_address.default.address, | ||
] | ||
ttl = 300 | ||
type = "A" | ||
managed_zone = google_dns_managed_zone.cloud.name | ||
name = google_dns_managed_zone.cloud.dns_name | ||
rrdatas = [ | ||
google_compute_address.default.address, | ||
] | ||
ttl = 300 | ||
type = "A" | ||
} | ||
|
||
resource "google_dns_record_set" "cloud-wildcard-A" { | ||
managed_zone = google_dns_managed_zone.cloud.name | ||
name = "*.wikibase.cloud." # TODO: Make this a variable. | ||
rrdatas = [ | ||
google_compute_address.default.address, | ||
] | ||
ttl = 300 | ||
type = "A" | ||
managed_zone = google_dns_managed_zone.cloud.name | ||
name = "*.wikibase.cloud." # TODO: Make this a variable. | ||
rrdatas = [ | ||
google_compute_address.default.address, | ||
] | ||
ttl = 300 | ||
type = "A" | ||
} | ||
|
||
resource "google_dns_record_set" "cloud-MailGun-record" { | ||
for_each = { | ||
for index, record in mailgun_domain.default.sending_records: | ||
index => record | ||
} | ||
name = "${each.value.name}." | ||
managed_zone = google_dns_managed_zone.cloud.name | ||
type = each.value.record_type | ||
rrdatas = [ replace("\"${each.value.value}\"", "/^\"eu.mailgun.org\"$/", "eu.mailgun.org." ) ] | ||
for_each = { | ||
for index, record in mailgun_domain.default.sending_records : | ||
index => record | ||
} | ||
name = "${each.value.name}." | ||
managed_zone = google_dns_managed_zone.cloud.name | ||
type = each.value.record_type | ||
rrdatas = [replace("\"${each.value.value}\"", "/^\"eu.mailgun.org\"$/", "eu.mailgun.org.")] | ||
} | ||
|
||
resource "google_dns_record_set" "cloud-dyna-A" { | ||
managed_zone = google_dns_managed_zone.cloud.name | ||
name = "sites-1.dyna.wikibase.cloud." | ||
rrdatas = [ | ||
google_compute_address.default.address, | ||
] | ||
ttl = 300 | ||
type = "A" | ||
managed_zone = google_dns_managed_zone.cloud.name | ||
name = "sites-1.dyna.wikibase.cloud." | ||
rrdatas = [ | ||
google_compute_address.default.address, | ||
] | ||
ttl = 300 | ||
type = "A" | ||
} |
Oops, something went wrong.