From 54f4620fc3f0fb5b302504e4514e6cbae71a08fb Mon Sep 17 00:00:00 2001 From: Bertrand Lanson Date: Mon, 19 Aug 2024 21:22:10 +0200 Subject: [PATCH] feat(outputs): add router output and edit descriptions --- README.md | 21 +++++++++++---------- outputs.tf | 32 +++++++++++++++++++++----------- 2 files changed, 32 insertions(+), 21 deletions(-) diff --git a/README.md b/README.md index 014d2b2..a2cd55d 100644 --- a/README.md +++ b/README.md @@ -71,14 +71,15 @@ No modules. | Name | Description | |------|-------------| -| [backend_network](#output_backend_network) | description | -| [backend_secgroups](#output_backend_secgroups) | description | -| [backend_subnet](#output_backend_subnet) | description | -| [database_network](#output_database_network) | description | -| [database_secgroups](#output_database_secgroups) | description | -| [database_subnets](#output_database_subnets) | description | -| [frontend_network](#output_frontend_network) | description | -| [frontend_secgroups](#output_frontend_secgroups) | description | -| [frontend_subnet](#output_frontend_subnet) | description | -| [subnetpool](#output_subnetpool) | n/a | +| [backend_network](#output_backend_network) | The backend network object (as a list), if created | +| [backend_secgroups](#output_backend_secgroups) | The backend security group objects (as a list), if created | +| [backend_subnet](#output_backend_subnet) | The backend subnet object (as a list), if created | +| [database_network](#output_database_network) | The database network object (as a list), if created | +| [database_secgroups](#output_database_secgroups) | The database security group objects (as a list), if created | +| [database_subnet](#output_database_subnet) | The database subnet object (as a list), if created | +| [frontend_network](#output_frontend_network) | The frontend network object (as a list), if created | +| [frontend_secgroups](#output_frontend_secgroups) | The frontend security group objects (as a list), if created | +| [frontend_subnet](#output_frontend_subnet) | The frontend subnet object (as a list), if created | +| [router](#output_router) | The entire router object (as a list), if created | +| [subnetpool](#output_subnetpool) | The subnetpool object (as a list), if created | diff --git a/outputs.tf b/outputs.tf index 45b09d6..7c9a7f3 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,66 +1,76 @@ output "subnetpool" { - value = length(openstack_networking_subnetpool_v2.this) > 0 ? openstack_networking_subnetpool_v2.this.* : null + value = length(openstack_networking_subnetpool_v2.this) > 0 ? openstack_networking_subnetpool_v2.this.* : null + sensitive = false + description = "The subnetpool object (as a list), if created" + depends_on = [] } output "frontend_network" { value = length(openstack_networking_network_v2.frontend) > 0 ? openstack_networking_network_v2.frontend.* : null sensitive = false - description = "description" + description = "The frontend network object (as a list), if created" depends_on = [] } output "frontend_subnet" { value = length(openstack_networking_subnet_v2.frontend) > 0 ? openstack_networking_subnet_v2.frontend.* : null sensitive = false - description = "description" + description = "The frontend subnet object (as a list), if created" depends_on = [] } output "backend_network" { value = length(openstack_networking_network_v2.backend) > 0 ? openstack_networking_network_v2.backend.* : null sensitive = false - description = "description" + description = "The backend network object (as a list), if created" depends_on = [] } output "backend_subnet" { value = length(openstack_networking_subnet_v2.backend) > 0 ? openstack_networking_subnet_v2.backend.* : null sensitive = false - description = "description" + description = "The backend subnet object (as a list), if created" depends_on = [] } output "database_network" { value = length(openstack_networking_network_v2.database) > 0 ? openstack_networking_network_v2.database.* : null sensitive = false - description = "description" + description = "The database network object (as a list), if created" depends_on = [] } -output "database_subnets" { +output "database_subnet" { value = length(openstack_networking_subnet_v2.database) > 0 ? openstack_networking_subnet_v2.database.* : null sensitive = false - description = "description" + description = "The database subnet object (as a list), if created" depends_on = [] } output "frontend_secgroups" { value = length(openstack_networking_secgroup_v2.frontend) > 0 ? openstack_networking_secgroup_v2.frontend.* : null sensitive = false - description = "description" + description = "The frontend security group objects (as a list), if created" depends_on = [] } output "backend_secgroups" { value = length(openstack_networking_secgroup_v2.backend) > 0 ? openstack_networking_secgroup_v2.backend.* : null sensitive = false - description = "description" + description = "The backend security group objects (as a list), if created" depends_on = [] } output "database_secgroups" { value = length(openstack_networking_secgroup_v2.database) > 0 ? openstack_networking_secgroup_v2.database.* : null sensitive = false - description = "description" + description = "The database security group objects (as a list), if created" + depends_on = [] +} + +output "router" { + value = length(openstack_networking_router_v2.this) > 0 ? openstack_networking_router_v2.this.* : null + sensitive = false + description = "The entire router object (as a list), if created" depends_on = [] }