You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: dns/record_generator/main.tf
+4-12Lines changed: 4 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -47,7 +47,6 @@ locals {
47
47
type = "A"
48
48
name = join(".", [key, var.name])
49
49
value = values["public_ip"]
50
-
data = null
51
50
}
52
51
],
53
52
flatten([
@@ -57,7 +56,6 @@ locals {
57
56
type ="A"
58
57
name =join(".", [vhost, var.name])
59
58
value = values["public_ip"]
60
-
data =null
61
59
}
62
60
]
63
61
if contains(values["tags"], var.vhost_tag)
@@ -67,16 +65,14 @@ locals {
67
65
type = "A"
68
66
name = var.name
69
67
value = values["public_ip"]
70
-
data = null
71
68
}
72
69
ifcontains(values["tags"], var.domain_tag)
73
70
],
74
71
flatten([
75
72
forkey, valuesinvar.public_instances: [
76
73
foralginkeys(values["hostkeys"]) : {
77
-
type = "SSHFP"
78
-
name = join(".", [key, var.name])
79
-
value = null
74
+
type = "SSHFP"
75
+
name = join(".", [key, var.name])
80
76
data = {
81
77
algorithm = local.SSHFP_SPEC["ssh-${alg}"]
82
78
type =2# SHA256
@@ -88,9 +84,8 @@ locals {
88
84
flatten([
89
85
forkey, valuesinvar.public_instances: [
90
86
foralginkeys(values["hostkeys"]) : {
91
-
type = "SSHFP"
92
-
name = var.name
93
-
value = null
87
+
type = "SSHFP"
88
+
name = var.name
94
89
data = {
95
90
algorithm = local.SSHFP_SPEC["ssh-${alg}"]
96
91
type =2# SHA256
@@ -106,19 +101,16 @@ locals {
106
101
type ="TXT"
107
102
name = var.name
108
103
value ="\"v=spf1 a -all\""
109
-
data =null
110
104
},
111
105
{
112
106
type ="TXT"
113
107
name = local.dkim_public_key !=""?"default._domainkey.${var.name}": var.name
114
108
value = local.dkim_public_key !=""?join("", formatlist("\"%s\"", regexall(".{1,255}", "v=DKIM1; k=rsa; p=${local.dkim_public_key}"))) :"No DKIM public key defined for this domain"
115
-
data =null
116
109
},
117
110
{
118
111
type ="TXT"
119
112
name = local.dkim_public_key !=""?"_dmarc.${var.name}": var.name
120
113
value = local.dkim_public_key !=""?"\"v=DMARC1; p=reject\"":"No DMARC policy defined for this domain"
0 commit comments