aboutsummaryrefslogtreecommitdiff
path: root/terraform/libvirt
diff options
context:
space:
mode:
authorChristopher Baines <mail@cbaines.net>2018-06-23 11:16:26 +0100
committerChristopher Baines <mail@cbaines.net>2018-06-23 12:58:05 +0100
commit05df9f91e9bdf39b190710ef5d80162d03dd52c5 (patch)
tree4a092a555a120131f8b3f096d274d2e3afc5bbae /terraform/libvirt
parent837e1ecec9798381f78b838947f8028403cb0bef (diff)
downloadgovuk-mini-environment-admin-05df9f91e9bdf39b190710ef5d80162d03dd52c5.tar
govuk-mini-environment-admin-05df9f91e9bdf39b190710ef5d80162d03dd52c5.tar.gz
Support managing the libvirt backend from the show page
Diffstat (limited to 'terraform/libvirt')
-rw-r--r--terraform/libvirt/backend/main.tf4
1 files changed, 4 insertions, 0 deletions
diff --git a/terraform/libvirt/backend/main.tf b/terraform/libvirt/backend/main.tf
index a8f7e3c..a733306 100644
--- a/terraform/libvirt/backend/main.tf
+++ b/terraform/libvirt/backend/main.tf
@@ -26,3 +26,7 @@ resource "libvirt_network" "main" {
output "network_name" {
value = "${libvirt_network.main.name}"
}
+
+output "backend_up" {
+ value = "${length(libvirt_network.main.name) != 0}"
+}