Update Readme Instructions

This commit is contained in:
Alexander Hosking 2021-10-14 13:58:56 -04:00
parent c75d9d9000
commit ca72c26396
4 changed files with 19 additions and 28 deletions

View File

@ -13,5 +13,8 @@ This will enable the packing/deploying to client 'clouds'.
1. `choco install tfsec`
## Install your pre-commit hooks
1. `pre-commit install`
## Running It!
1. `pre-commit run -a`

View File

@ -43,31 +43,14 @@ resource "cloudflare_record" "ahosking_home" {
value = var.home_ip
}
resource "cloudflare_record" "ahosking_code" {
zone_id = cloudflare_zone.ahosking_com.id
name = "code"
type = "CNAME"
ttl = "1"
value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking_com.zone])
proxied = true
}
resource "cloudflare_record" "ahosking_ombi" {
zone_id = cloudflare_zone.ahosking_com.id
name = "ombi.ahosking.com"
type = "CNAME"
ttl = "1"
value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking_com.zone])
proxied = true
}
resource "cloudflare_record" "ahosking_radarr" {
zone_id = cloudflare_zone.ahosking_com.id
name = "radarr.ahosking.com"
type = "CNAME"
ttl = "1"
value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking_com.zone])
proxied = true
resource "cloudflare_record" "ahosking_cnames" {
for_each = toset(var.ahosking_com_cnames)
zone_id = cloudflare_zone.ahosking_com.id
name = each.key
type = "CNAME"
ttl = "1"
value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking_com.zone])
proxied = true
}
# email MX value for DNS

View File

@ -187,9 +187,9 @@ resource "cloudflare_record" "support_ahoskingit" {
resource "cloudflare_record" "git_ahoskingit" {
zone_id = cloudflare_zone.ahoskingit_com.id
name = "git"
type = "A"
value = var.home_ip
#proxied = "true"
type = "CNAME"
value = join(".", [cloudflare_record.home_ahoskingit.name, cloudflare_zone.ahoskingit_com.zone])
proxied = "true"
}
resource "cloudflare_record" "gitlab_ahoskingit" {

View File

@ -38,3 +38,8 @@ variable "studi-odesign_ca" { default = "studi-odesign.ca" }
#variable "vsphere_password" {}
#variable "vsphere_server" {}
variable "environment" {}
variable "ahosking_com_cnames" {
default = ["code", "radarr", "sonarr", "ombi", "git"]
}