summaryrefslogtreecommitdiff
path: root/j2/terraform-machine-outputs.j2
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 /j2/terraform-machine-outputs.j2
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 'j2/terraform-machine-outputs.j2')
-rw-r--r--j2/terraform-machine-outputs.j27
1 files changed, 7 insertions, 0 deletions
diff --git a/j2/terraform-machine-outputs.j2 b/j2/terraform-machine-outputs.j2
new file mode 100644
index 0000000..438fac6
--- /dev/null
+++ b/j2/terraform-machine-outputs.j2
@@ -0,0 +1,7 @@
+output "addresses" {
+ value = {
+{%- for m in machines %}
+ {{ m.key }}: scaleway_instance_ip.{{ m.key }}.address,
+{%- endfor %}
+ }
+}