diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2021-02-03 16:35:48 +0100 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2021-02-03 16:35:48 +0100 |
commit | bafe762ac01d16904c18404283027e426e19bc73 (patch) | |
tree | c22688ad186f5ce635f525704c5035f91b983b68 /acme/main.tf | |
parent | 91abd0b04320a9c9d932df195aca38c1cacfcc5a (diff) | |
download | rules-sandbox-bafe762ac01d16904c18404283027e426e19bc73.tar.gz rules-sandbox-bafe762ac01d16904c18404283027e426e19bc73.tar.bz2 rules-sandbox-bafe762ac01d16904c18404283027e426e19bc73.tar.xz rules-sandbox-bafe762ac01d16904c18404283027e426e19bc73.zip |
Code reorganization.
Moving main code to src, keeping modules in modules/
Diffstat (limited to 'acme/main.tf')
-rw-r--r-- | acme/main.tf | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/acme/main.tf b/acme/main.tf deleted file mode 100644 index c7b91b2..0000000 --- a/acme/main.tf +++ /dev/null @@ -1,60 +0,0 @@ -terraform { - required_providers { - scaleway = { - source = "scaleway/scaleway" - version = "1.17.2" - } - - ansiblevault = { - source = "MeilleursAgents/ansiblevault" - version = "2.2.0" - } - } -} - -variable "ansible_vault_pass" { - type = string -} - -provider "ansiblevault" { - # vault_path = ".vault-password" - vault_pass = var.ansible_vault_pass - root_folder = "." -} - -data "ansiblevault_path" "scaleway_access_key" { - path = "vault/scaleway.yml" - key = "scaleway_access_key" -} -data "ansiblevault_path" "scaleway_secret_key" { - path = "vault/scaleway.yml" - key = "scaleway_secret_key" -} -data "ansiblevault_path" "scaleway_organization" { - path = "vault/scaleway.yml" - key = "scaleway_organization" -} - -provider "scaleway" { - region = "fr-par" - zone = "fr-par-1" - access_key = data.ansiblevault_path.scaleway_access_key.value - secret_key = data.ansiblevault_path.scaleway_secret_key.value - organization_id = data.ansiblevault_path.scaleway_organization.value -} - -# This can also be generated from input objects, but it might be reused between different modules so some control -# over if/when it is generated is required. -resource "google_dns_managed_zone" "acme" { - name = "acme" - dns_name = "machine.acme.com." -} - -module "acme-apps" { - source = "../acme-apps/terraform" - providers = { - scaleway = scaleway - } - - acme_zone = google_dns_managed_zone.acme.name -} |