From 60c803f86b923c65372013defe4f66c3d01c58cd Mon Sep 17 00:00:00 2001 From: clarkzjw Date: Fri, 13 Jan 2023 01:25:38 -0800 Subject: add atlas --- clarkzjw.ca/.terraform.lock.hcl | 24 ------------------------ clarkzjw.ca/cloudflare.tf | 23 ----------------------- clarkzjw.ca/config/atlas/README.md | 4 ++++ clarkzjw.ca/infra/.terraform.lock.hcl | 24 ++++++++++++++++++++++++ clarkzjw.ca/infra/cloudflare.tf | 23 +++++++++++++++++++++++ clarkzjw.ca/infra/variables.tf | 4 ++++ clarkzjw.ca/infra/versions.tf | 8 ++++++++ clarkzjw.ca/variables.tf | 4 ---- clarkzjw.ca/versions.tf | 8 -------- 9 files changed, 63 insertions(+), 59 deletions(-) delete mode 100644 clarkzjw.ca/.terraform.lock.hcl delete mode 100644 clarkzjw.ca/cloudflare.tf create mode 100644 clarkzjw.ca/config/atlas/README.md create mode 100644 clarkzjw.ca/infra/.terraform.lock.hcl create mode 100644 clarkzjw.ca/infra/cloudflare.tf create mode 100644 clarkzjw.ca/infra/variables.tf create mode 100644 clarkzjw.ca/infra/versions.tf delete mode 100644 clarkzjw.ca/variables.tf delete mode 100644 clarkzjw.ca/versions.tf diff --git a/clarkzjw.ca/.terraform.lock.hcl b/clarkzjw.ca/.terraform.lock.hcl deleted file mode 100644 index 5a1955d..0000000 --- a/clarkzjw.ca/.terraform.lock.hcl +++ /dev/null @@ -1,24 +0,0 @@ -# This file is maintained automatically by "terraform init". -# Manual edits may be lost in future updates. - -provider "registry.terraform.io/cloudflare/cloudflare" { - version = "3.32.0" - constraints = "~> 3.29" - hashes = [ - "h1:m+MuihUEa0RARMGxpGKAOeCq99d94njRXJjKCAc6Xtk=", - "zh:0be6ee63a380c7cf8b0666dd296ab5cdb9ec0a18ae99cd11d732783debd783f4", - "zh:0dca442861a263aaadf5c95ce962b979b8380c9c6e472018cba345aa9b6484ef", - "zh:549b44da944698d07d58d678f528e14d81c76d8e16d0dcab3d47a2956b20c2dd", - "zh:604206dca9896baec3759c34d83477535eaba9c40843d299bf5dd302830883fd", - "zh:6bff7b21254f218eba7da0227694abe33de7750a59d8d54dd04c814a0b5fe3dc", - "zh:7364c2bbae08208384831ccad983963c9746a83ac02e8061b6cc78407b202605", - "zh:7fba3591440ef6485eac5ab5794f7f43b4e0195365b5451bac29bd2dbccdbe14", - "zh:844a6ede2b60df8507865b0b2c137c76412ec55e8601ca132c113bc5d4d5f594", - "zh:90947dd9bfe6a5ab0b77c6c36bbbf07d67c94d6d22cc4fbe3c7572accda7f9b4", - "zh:987fd764c9f2595eba98774fa07bb669ae97546e06289b10a5536f1c1c2cb618", - "zh:993c8b9e7ab31ac39cd586a07578113341bb5870bc2348875a4ad4f2234efe0e", - "zh:be77e1575e93485e8a507e995e5f6cefc9f14681dc26396813cbf079fda87c20", - "zh:c300598e693c177f8a6dd3ff42e9f95cbaf7789d77124ad48899b9f4f8400ec0", - "zh:f589e8754cb4dc6baf43c0f08004073bb2e8a703aa71680f9ac2efd49fdc7bdf", - ] -} diff --git a/clarkzjw.ca/cloudflare.tf b/clarkzjw.ca/cloudflare.tf deleted file mode 100644 index 68ab88f..0000000 --- a/clarkzjw.ca/cloudflare.tf +++ /dev/null @@ -1,23 +0,0 @@ -data "cloudflare_zones" "homelab_main_domain" { - filter { - name = var.homelab_main_domain - } -} - -variable "homelab_www_domain" { - default = "clarkzjw.ca" -} - -variable "homelab_www_ip" { - default = "8.8.8.8" -} - -resource "cloudflare_record" "main" { - zone_id = data.cloudflare_zones.homelab_main_domain.zones[0].id - name = var.homelab_www_domain - value = var.homelab_www_ip - type = "A" - - ttl = 1 - proxied = true -} diff --git a/clarkzjw.ca/config/atlas/README.md b/clarkzjw.ca/config/atlas/README.md new file mode 100644 index 0000000..228236a --- /dev/null +++ b/clarkzjw.ca/config/atlas/README.md @@ -0,0 +1,4 @@ +# Atlas + +Hostname: atlas +Usage: HomeLab Main NAS diff --git a/clarkzjw.ca/infra/.terraform.lock.hcl b/clarkzjw.ca/infra/.terraform.lock.hcl new file mode 100644 index 0000000..5a1955d --- /dev/null +++ b/clarkzjw.ca/infra/.terraform.lock.hcl @@ -0,0 +1,24 @@ +# This file is maintained automatically by "terraform init". +# Manual edits may be lost in future updates. + +provider "registry.terraform.io/cloudflare/cloudflare" { + version = "3.32.0" + constraints = "~> 3.29" + hashes = [ + "h1:m+MuihUEa0RARMGxpGKAOeCq99d94njRXJjKCAc6Xtk=", + "zh:0be6ee63a380c7cf8b0666dd296ab5cdb9ec0a18ae99cd11d732783debd783f4", + "zh:0dca442861a263aaadf5c95ce962b979b8380c9c6e472018cba345aa9b6484ef", + "zh:549b44da944698d07d58d678f528e14d81c76d8e16d0dcab3d47a2956b20c2dd", + "zh:604206dca9896baec3759c34d83477535eaba9c40843d299bf5dd302830883fd", + "zh:6bff7b21254f218eba7da0227694abe33de7750a59d8d54dd04c814a0b5fe3dc", + "zh:7364c2bbae08208384831ccad983963c9746a83ac02e8061b6cc78407b202605", + "zh:7fba3591440ef6485eac5ab5794f7f43b4e0195365b5451bac29bd2dbccdbe14", + "zh:844a6ede2b60df8507865b0b2c137c76412ec55e8601ca132c113bc5d4d5f594", + "zh:90947dd9bfe6a5ab0b77c6c36bbbf07d67c94d6d22cc4fbe3c7572accda7f9b4", + "zh:987fd764c9f2595eba98774fa07bb669ae97546e06289b10a5536f1c1c2cb618", + "zh:993c8b9e7ab31ac39cd586a07578113341bb5870bc2348875a4ad4f2234efe0e", + "zh:be77e1575e93485e8a507e995e5f6cefc9f14681dc26396813cbf079fda87c20", + "zh:c300598e693c177f8a6dd3ff42e9f95cbaf7789d77124ad48899b9f4f8400ec0", + "zh:f589e8754cb4dc6baf43c0f08004073bb2e8a703aa71680f9ac2efd49fdc7bdf", + ] +} diff --git a/clarkzjw.ca/infra/cloudflare.tf b/clarkzjw.ca/infra/cloudflare.tf new file mode 100644 index 0000000..68ab88f --- /dev/null +++ b/clarkzjw.ca/infra/cloudflare.tf @@ -0,0 +1,23 @@ +data "cloudflare_zones" "homelab_main_domain" { + filter { + name = var.homelab_main_domain + } +} + +variable "homelab_www_domain" { + default = "clarkzjw.ca" +} + +variable "homelab_www_ip" { + default = "8.8.8.8" +} + +resource "cloudflare_record" "main" { + zone_id = data.cloudflare_zones.homelab_main_domain.zones[0].id + name = var.homelab_www_domain + value = var.homelab_www_ip + type = "A" + + ttl = 1 + proxied = true +} diff --git a/clarkzjw.ca/infra/variables.tf b/clarkzjw.ca/infra/variables.tf new file mode 100644 index 0000000..2847d76 --- /dev/null +++ b/clarkzjw.ca/infra/variables.tf @@ -0,0 +1,4 @@ +variable "homelab_main_domain" { + description = "HomeLab Main Domain" + default = "clarkzjw.ca" +} diff --git a/clarkzjw.ca/infra/versions.tf b/clarkzjw.ca/infra/versions.tf new file mode 100644 index 0000000..1551173 --- /dev/null +++ b/clarkzjw.ca/infra/versions.tf @@ -0,0 +1,8 @@ +terraform { + required_providers { + cloudflare = { + source = "cloudflare/cloudflare" + version = "~> 3.29" + } + } +} diff --git a/clarkzjw.ca/variables.tf b/clarkzjw.ca/variables.tf deleted file mode 100644 index 2847d76..0000000 --- a/clarkzjw.ca/variables.tf +++ /dev/null @@ -1,4 +0,0 @@ -variable "homelab_main_domain" { - description = "HomeLab Main Domain" - default = "clarkzjw.ca" -} diff --git a/clarkzjw.ca/versions.tf b/clarkzjw.ca/versions.tf deleted file mode 100644 index 1551173..0000000 --- a/clarkzjw.ca/versions.tf +++ /dev/null @@ -1,8 +0,0 @@ -terraform { - required_providers { - cloudflare = { - source = "cloudflare/cloudflare" - version = "~> 3.29" - } - } -} -- cgit v1.2.3