File tree Expand file tree Collapse file tree 7 files changed +27
-0
lines changed Expand file tree Collapse file tree 7 files changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -124,6 +124,7 @@ You need the following permissions to run this module.
124124| <a name =" output_guid " ></a > [ guid] ( #output\_ guid ) | MongoDB instance guid |
125125| <a name =" output_hostname " ></a > [ hostname] ( #output\_ hostname ) | Database connection hostname |
126126| <a name =" output_id " ></a > [ id] ( #output\_ id ) | MongoDB instance ID |
127+ | <a name =" output_member_hostnames " ></a > [ member\_ hostnames] ( #output\_ member\_ hostnames ) | List of hostnames for all MongoDB replica set members |
127128| <a name =" output_port " ></a > [ port] ( #output\_ port ) | Database connection port |
128129| <a name =" output_service_credentials_json " ></a > [ service\_ credentials\_ json] ( #output\_ service\_ credentials\_ json ) | Service credentials json map |
129130| <a name =" output_service_credentials_object " ></a > [ service\_ credentials\_ object] ( #output\_ service\_ credentials\_ object ) | Service credentials object |
Original file line number Diff line number Diff line change @@ -26,6 +26,11 @@ output "hostname" {
2626 value = module. database . hostname
2727}
2828
29+ output "member_hostnames" {
30+ description = " List of hostnames for all MongoDB replica set members"
31+ value = module. database . member_hostnames
32+ }
33+
2934output "port" {
3035 description = " Database connection port"
3136 value = module. database . port
Original file line number Diff line number Diff line change @@ -39,6 +39,11 @@ output "hostname" {
3939 value = module. icd_mongodb . hostname
4040}
4141
42+ output "member_hostnames" {
43+ description = " List of hostnames for all MongoDB replica set members"
44+ value = module. icd_mongodb . member_hostnames
45+ }
46+
4247output "port" {
4348 description = " MongoDB instance port"
4449 value = module. icd_mongodb . port
Original file line number Diff line number Diff line change @@ -21,6 +21,11 @@ output "hostname" {
2121 value = module. mongodb . hostname
2222}
2323
24+ output "member_hostnames" {
25+ description = " List of hostnames for all MongoDB replica set members"
26+ value = module. mongodb . member_hostnames
27+ }
28+
2429output "port" {
2530 description = " Database port. Only contains value when var.service_credential_names or var.users are set."
2631 value = module. mongodb . port
Original file line number Diff line number Diff line change @@ -68,6 +68,7 @@ No resources.
6868| <a name =" output_guid " ></a > [ guid] ( #output\_ guid ) | MongoDB instance guid |
6969| <a name =" output_hostname " ></a > [ hostname] ( #output\_ hostname ) | Database connection hostname |
7070| <a name =" output_id " ></a > [ id] ( #output\_ id ) | MongoDB instance id |
71+ | <a name =" output_member_hostnames " ></a > [ member\_ hostnames] ( #output\_ member\_ hostnames ) | List of hostnames for all MongoDB replica set members |
7172| <a name =" output_port " ></a > [ port] ( #output\_ port ) | Database connection port |
7273| <a name =" output_service_credentials_json " ></a > [ service\_ credentials\_ json] ( #output\_ service\_ credentials\_ json ) | Service credentials json map |
7374| <a name =" output_service_credentials_object " ></a > [ service\_ credentials\_ object] ( #output\_ service\_ credentials\_ object ) | Service credentials object |
Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ output "hostname" {
4949 value = module. mongodb . hostname
5050}
5151
52+ output "member_hostnames" {
53+ description = " List of hostnames for all MongoDB replica set members"
54+ value = module. mongodb . member_hostnames
55+ }
56+
5257output "port" {
5358 description = " Database connection port"
5459 value = module. mongodb . port
Original file line number Diff line number Diff line change @@ -49,6 +49,11 @@ output "hostname" {
4949 value = data. ibm_database_connection . database_connection . mongodb [0 ]. hosts [0 ]. hostname
5050}
5151
52+ output "member_hostnames" {
53+ description = " List of hostnames for all MongoDB replica set members"
54+ value = [for host in data . ibm_database_connection . database_connection . mongodb [0 ]. hosts : host . hostname ]
55+ }
56+
5257output "port" {
5358 description = " Database connection port"
5459 value = data. ibm_database_connection . database_connection . mongodb [0 ]. hosts [0 ]. port
You can’t perform that action at this time.
0 commit comments