Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ You need the following permissions to run this module.
| <a name="output_guid"></a> [guid](#output\_guid) | MongoDB instance guid |
| <a name="output_hostname"></a> [hostname](#output\_hostname) | Database connection hostname |
| <a name="output_id"></a> [id](#output\_id) | MongoDB instance ID |
| <a name="output_member_hostnames"></a> [member\_hostnames](#output\_member\_hostnames) | List of hostnames for all MongoDB replica set members |
| <a name="output_port"></a> [port](#output\_port) | Database connection port |
| <a name="output_service_credentials_json"></a> [service\_credentials\_json](#output\_service\_credentials\_json) | Service credentials json map |
| <a name="output_service_credentials_object"></a> [service\_credentials\_object](#output\_service\_credentials\_object) | Service credentials object |
Expand Down
5 changes: 5 additions & 0 deletions examples/basic/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,11 @@ output "hostname" {
value = module.database.hostname
}

output "member_hostnames" {
description = "List of hostnames for all MongoDB replica set members"
value = module.database.member_hostnames
}

output "port" {
description = "Database connection port"
value = module.database.port
Expand Down
5 changes: 5 additions & 0 deletions examples/complete/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ output "hostname" {
value = module.icd_mongodb.hostname
}

output "member_hostnames" {
description = "List of hostnames for all MongoDB replica set members"
value = module.icd_mongodb.member_hostnames
}

output "port" {
description = "MongoDB instance port"
value = module.icd_mongodb.port
Expand Down
5 changes: 5 additions & 0 deletions examples/fscloud/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,11 @@ output "hostname" {
value = module.mongodb.hostname
}

output "member_hostnames" {
description = "List of hostnames for all MongoDB replica set members"
value = module.mongodb.member_hostnames
}

output "port" {
description = "Database port. Only contains value when var.service_credential_names or var.users are set."
value = module.mongodb.port
Expand Down
1 change: 1 addition & 0 deletions modules/fscloud/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,7 @@ No resources.
| <a name="output_guid"></a> [guid](#output\_guid) | MongoDB instance guid |
| <a name="output_hostname"></a> [hostname](#output\_hostname) | Database connection hostname |
| <a name="output_id"></a> [id](#output\_id) | MongoDB instance id |
| <a name="output_member_hostnames"></a> [member\_hostnames](#output\_member\_hostnames) | List of hostnames for all MongoDB replica set members |
| <a name="output_port"></a> [port](#output\_port) | Database connection port |
| <a name="output_service_credentials_json"></a> [service\_credentials\_json](#output\_service\_credentials\_json) | Service credentials json map |
| <a name="output_service_credentials_object"></a> [service\_credentials\_object](#output\_service\_credentials\_object) | Service credentials object |
Expand Down
5 changes: 5 additions & 0 deletions modules/fscloud/outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ output "hostname" {
value = module.mongodb.hostname
}

output "member_hostnames" {
description = "List of hostnames for all MongoDB replica set members"
value = module.mongodb.member_hostnames
}

output "port" {
description = "Database connection port"
value = module.mongodb.port
Expand Down
5 changes: 5 additions & 0 deletions outputs.tf
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,11 @@ output "hostname" {
value = data.ibm_database_connection.database_connection.mongodb[0].hosts[0].hostname
}

output "member_hostnames" {
description = "List of hostnames for all MongoDB replica set members"
value = [for host in data.ibm_database_connection.database_connection.mongodb[0].hosts : host.hostname]
}

output "port" {
description = "Database connection port"
value = data.ibm_database_connection.database_connection.mongodb[0].hosts[0].port
Expand Down