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` 1. `choco install tfsec`
## Install your pre-commit hooks
1. `pre-commit install`
## Running It! ## Running It!
1. `pre-commit run -a` 1. `pre-commit run -a`

View File

@ -43,31 +43,14 @@ resource "cloudflare_record" "ahosking_home" {
value = var.home_ip value = var.home_ip
} }
resource "cloudflare_record" "ahosking_code" { resource "cloudflare_record" "ahosking_cnames" {
zone_id = cloudflare_zone.ahosking_com.id for_each = toset(var.ahosking_com_cnames)
name = "code" zone_id = cloudflare_zone.ahosking_com.id
type = "CNAME" name = each.key
ttl = "1" type = "CNAME"
value = join(".", [cloudflare_record.ahosking_home.name, cloudflare_zone.ahosking_com.zone]) ttl = "1"
proxied = true 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
} }
# email MX value for DNS # email MX value for DNS

View File

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

View File

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