Implement mongo_node_ips hiera key

We need a list of hosts where MongoDB is supposed to run (as a list of
IP addresses, not names) to implement MongoDB support in overcloud.

Change-Id: I4b80f13be7e50630314d0642fa32b7763b6a2921
This commit is contained in:
Jiri Stransky 2015-03-25 15:38:38 +01:00
parent 5ddcfb6655
commit f9b98d4c57
3 changed files with 9 additions and 0 deletions

View File

@ -6,6 +6,8 @@ parameters:
type: comma_delimited_list
controller_hosts:
type: comma_delimited_list
controller_ips:
type: comma_delimited_list
block_storage_hosts:
type: comma_delimited_list
object_storage_hosts:

View File

@ -695,6 +695,7 @@ resources:
properties:
compute_hosts: {get_attr: [Compute, hosts_entry]}
controller_hosts: {get_attr: [Controller, hosts_entry]}
controller_ips: {get_attr: [Controller, ip_address]}
block_storage_hosts: {get_attr: [BlockStorage, hosts_entry]}
object_storage_hosts: {get_attr: [ObjectStorage, hosts_entry]}
ceph_storage_hosts: {get_attr: [CephStorage, hosts_entry]}

View File

@ -6,6 +6,8 @@ parameters:
type: comma_delimited_list
controller_hosts:
type: comma_delimited_list
controller_ips:
type: comma_delimited_list
block_storage_hosts:
type: comma_delimited_list
object_storage_hosts:
@ -52,6 +54,10 @@ resources:
list_join:
- ','
- {get_param: controller_names}
mongo_node_ips:
list_join:
- ','
- {get_param: controller_ips}
outputs:
config_id: