summaryrefslogtreecommitdiff
path: root/gen/dns
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2020-12-29 20:52:52 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2020-12-29 20:52:52 +0100
commite27264ff17bc102143a631495be86798a53cf6ca (patch)
treeb5b671701c2264b784fa87ed35384dd9bcaffadb /gen/dns
parent9851dffc8d915ff01117a5ed8070e5b2a1ef2bb5 (diff)
downloadrules-sandbox-e27264ff17bc102143a631495be86798a53cf6ca.tar.gz
rules-sandbox-e27264ff17bc102143a631495be86798a53cf6ca.tar.bz2
rules-sandbox-e27264ff17bc102143a631495be86798a53cf6ca.tar.xz
rules-sandbox-e27264ff17bc102143a631495be86798a53cf6ca.zip
Working TF code.
Diffstat (limited to 'gen/dns')
-rw-r--r--gen/dns/acme-1.tf (renamed from gen/dns/acme-1.machine.acme.corp.tf)4
-rw-r--r--gen/dns/acme-2.tf (renamed from gen/dns/acme-2.machine.acme.corp.tf)4
-rw-r--r--gen/dns/acme-3.tf (renamed from gen/dns/acme-3.machine.acme.corp.tf)4
-rw-r--r--gen/dns/inputs.tf3
4 files changed, 9 insertions, 6 deletions
diff --git a/gen/dns/acme-1.machine.acme.corp.tf b/gen/dns/acme-1.tf
index cb408cb..c1022ba 100644
--- a/gen/dns/acme-1.machine.acme.corp.tf
+++ b/gen/dns/acme-1.tf
@@ -1,8 +1,8 @@
-resource "google_dns_record_set" "acme-1.machine.acme.corp" {
+resource "google_dns_record_set" "acme-1_machine_acme_corp" {
name = "acme-1.machine.acme.corp"
managed_zone = "None"
type = "A"
ttl = 300
- rrdatas = [None]
+ rrdatas = [var.addresses.acme-1]
}
diff --git a/gen/dns/acme-2.machine.acme.corp.tf b/gen/dns/acme-2.tf
index 9edfe76..4847052 100644
--- a/gen/dns/acme-2.machine.acme.corp.tf
+++ b/gen/dns/acme-2.tf
@@ -1,8 +1,8 @@
-resource "google_dns_record_set" "acme-2.machine.acme.corp" {
+resource "google_dns_record_set" "acme-2_machine_acme_corp" {
name = "acme-2.machine.acme.corp"
managed_zone = "None"
type = "A"
ttl = 300
- rrdatas = [None]
+ rrdatas = [var.addresses.acme-2]
}
diff --git a/gen/dns/acme-3.machine.acme.corp.tf b/gen/dns/acme-3.tf
index 940dbf2..c192dd3 100644
--- a/gen/dns/acme-3.machine.acme.corp.tf
+++ b/gen/dns/acme-3.tf
@@ -1,8 +1,8 @@
-resource "google_dns_record_set" "acme-3.machine.acme.corp" {
+resource "google_dns_record_set" "acme-3_machine_acme_corp" {
name = "acme-3.machine.acme.corp"
managed_zone = "None"
type = "A"
ttl = 300
- rrdatas = [None]
+ rrdatas = [var.addresses.acme-3]
}
diff --git a/gen/dns/inputs.tf b/gen/dns/inputs.tf
new file mode 100644
index 0000000..615ea69
--- /dev/null
+++ b/gen/dns/inputs.tf
@@ -0,0 +1,3 @@
+variable "addresses" {
+ type = map(string)
+}