From af77f1de85e4c3be627309e42eb35e30f8c908e0 Mon Sep 17 00:00:00 2001 From: Bo-Chun Louis Chen <louistw@uab.edu> Date: Wed, 28 Aug 2019 12:47:47 -0500 Subject: [PATCH] Export compute node ids Accessible by calling module.nodes.id will return a list of compute node id Mainly using for null-resource trigger --- nodes/main.tf | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/nodes/main.tf b/nodes/main.tf index cd92682..f689eac 100644 --- a/nodes/main.tf +++ b/nodes/main.tf @@ -32,4 +32,9 @@ resource "openstack_compute_instance_v2" "compute" { network { name = var.internal_network } -} \ No newline at end of file +} + +# output +output "id" { + value = openstack_compute_instance_v2.compute.*.id +} -- GitLab