summaryrefslogtreecommitdiff
path: root/j2/terraform-record-set.j2
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2021-01-07 23:38:01 +0100
committerTrygve Laugstøl <trygvis@inamo.no>2021-01-07 23:38:01 +0100
commit3d25f7059f518dd8c857dd5e45552ba3ab733aa6 (patch)
treee7bbd7f2c6c7cfe41398335da0ab51807b54931c /j2/terraform-record-set.j2
parent70d0ad3c9f37e44a9504a0d7f66e412a3f3bba6f (diff)
downloadrules-sandbox-3d25f7059f518dd8c857dd5e45552ba3ab733aa6.tar.gz
rules-sandbox-3d25f7059f518dd8c857dd5e45552ba3ab733aa6.tar.bz2
rules-sandbox-3d25f7059f518dd8c857dd5e45552ba3ab733aa6.tar.xz
rules-sandbox-3d25f7059f518dd8c857dd5e45552ba3ab733aa6.zip
Working terraform setup.
Diffstat (limited to 'j2/terraform-record-set.j2')
-rw-r--r--j2/terraform-record-set.j24
1 files changed, 2 insertions, 2 deletions
diff --git a/j2/terraform-record-set.j2 b/j2/terraform-record-set.j2
index 31bcfab..b89ee00 100644
--- a/j2/terraform-record-set.j2
+++ b/j2/terraform-record-set.j2
@@ -1,8 +1,8 @@
resource "google_dns_record_set" "{{ tf.key }}" {
name = "{{ entry.fqdn }}"
- managed_zone = "{{ tf.terraformManagedZone }}"
+ managed_zone = var.{{ managedZone.name }}
type = "{{ entry.type }}"
ttl = 300
- rrdatas = [var.addresses.{{ tf.expression }}]
+ rrdatas = [{{ tf.expression }}]
}