summaryrefslogtreecommitdiff
path: root/j2/terraform-machine-outputs.j2
diff options
context:
space:
mode:
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 %}
+ }
+}