simple variable renaming
parent
dc48207c55
commit
1d25b0aa12
14
namecheap.tf
14
namecheap.tf
|
@ -18,7 +18,7 @@ variable "hosts" {
|
||||||
// These are subdomains for services hosted on the host named `caladan`.
|
// These are subdomains for services hosted on the host named `caladan`.
|
||||||
// Both A and AAAA records should be made for them pointing to caladan's ipv4
|
// Both A and AAAA records should be made for them pointing to caladan's ipv4
|
||||||
// and ipv6 respectively
|
// and ipv6 respectively
|
||||||
variable "caladan-hostnames" {
|
variable "caladan-subdomains" {
|
||||||
type = set(string)
|
type = set(string)
|
||||||
default = [
|
default = [
|
||||||
"@",
|
"@",
|
||||||
|
@ -42,7 +42,7 @@ variable "caladan-hostnames" {
|
||||||
// takes care of that.
|
// takes care of that.
|
||||||
// But I set the public A record to caladan's ipv4 just for renewing their
|
// But I set the public A record to caladan's ipv4 just for renewing their
|
||||||
// letsencrypt certificates. No need to set the AAAA record.
|
// letsencrypt certificates. No need to set the AAAA record.
|
||||||
variable "narwhal-hostnames" {
|
variable "narwhal-subdomains" {
|
||||||
type = set(string)
|
type = set(string)
|
||||||
default = [
|
default = [
|
||||||
"authelia",
|
"authelia",
|
||||||
|
@ -79,7 +79,7 @@ variable "narwhal-hostnames" {
|
||||||
// takes care of that.
|
// takes care of that.
|
||||||
// But I set the public A record to caladan's ipv4 just for renewing their
|
// But I set the public A record to caladan's ipv4 just for renewing their
|
||||||
// letsencrypt certificates. No need to set the AAAA record.
|
// letsencrypt certificates. No need to set the AAAA record.
|
||||||
variable "sloth-hostnames" {
|
variable "sloth-subdomains" {
|
||||||
type = set(string)
|
type = set(string)
|
||||||
default = [
|
default = [
|
||||||
"kodi",
|
"kodi",
|
||||||
|
@ -100,7 +100,7 @@ resource "namecheap_domain_records" "monotremata-xyz" {
|
||||||
mode = "MERGE" // maybe eventually move to OVERWRITE
|
mode = "MERGE" // maybe eventually move to OVERWRITE
|
||||||
|
|
||||||
dynamic "record" {
|
dynamic "record" {
|
||||||
for_each = var.caladan-hostnames
|
for_each = var.caladan-subdomains
|
||||||
content {
|
content {
|
||||||
hostname = record.value
|
hostname = record.value
|
||||||
type = "A"
|
type = "A"
|
||||||
|
@ -109,7 +109,7 @@ resource "namecheap_domain_records" "monotremata-xyz" {
|
||||||
}
|
}
|
||||||
|
|
||||||
dynamic "record" {
|
dynamic "record" {
|
||||||
for_each = var.narwhal-hostnames
|
for_each = var.narwhal-subdomains
|
||||||
content {
|
content {
|
||||||
hostname = record.value
|
hostname = record.value
|
||||||
type = "A"
|
type = "A"
|
||||||
|
@ -118,7 +118,7 @@ resource "namecheap_domain_records" "monotremata-xyz" {
|
||||||
}
|
}
|
||||||
|
|
||||||
dynamic "record" {
|
dynamic "record" {
|
||||||
for_each = var.sloth-hostnames
|
for_each = var.sloth-subdomains
|
||||||
content {
|
content {
|
||||||
hostname = record.value
|
hostname = record.value
|
||||||
type = "A"
|
type = "A"
|
||||||
|
@ -127,7 +127,7 @@ resource "namecheap_domain_records" "monotremata-xyz" {
|
||||||
}
|
}
|
||||||
|
|
||||||
dynamic "record" {
|
dynamic "record" {
|
||||||
for_each = var.caladan-hostnames
|
for_each = var.caladan-subdomains
|
||||||
content {
|
content {
|
||||||
hostname = record.value
|
hostname = record.value
|
||||||
type = "AAAA"
|
type = "AAAA"
|
||||||
|
|
Loading…
Reference in New Issue