diff options
author | Jenkins <jenkins@review.openstack.org> | 2016-10-19 13:55:42 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2016-10-19 13:55:42 +0000 |
commit | e86706f0f6c589ed8baeb9616b128a738b330a94 (patch) | |
tree | 65cb3b11b74addac0c4cca94d9988c672cfc0477 /manifests/profile/base/sahara.pp | |
parent | b078fcd39c414d1f897ae559ea11a0ce4b6b9c25 (diff) | |
parent | 597194a4199b34e1389b26f080ae1fefccbca924 (diff) |
Merge "Add port to rabbitmq node ip list"
Diffstat (limited to 'manifests/profile/base/sahara.pp')
-rw-r--r-- | manifests/profile/base/sahara.pp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/manifests/profile/base/sahara.pp b/manifests/profile/base/sahara.pp index cf0ee90..c034628 100644 --- a/manifests/profile/base/sahara.pp +++ b/manifests/profile/base/sahara.pp @@ -29,11 +29,16 @@ # [*rabbit_hosts*] # list of the rabbbit host IPs # Defaults to hiera('rabbitmq_node_ips') +# +# [*rabbit_port*] +# IP port for rabbitmq service +# Defaults to hiera('sahara::rabbit_port', 5672) class tripleo::profile::base::sahara ( $bootstrap_node = hiera('bootstrap_nodeid', undef), $step = hiera('step'), $rabbit_hosts = hiera('rabbitmq_node_ips', undef), + $rabbit_port = hiera('sahara::rabbit_port', 5672), ) { if $::hostname == downcase($bootstrap_node) { $sync_db = true @@ -44,7 +49,7 @@ class tripleo::profile::base::sahara ( if $step >= 4 or ($step >= 3 and $sync_db){ class { '::sahara': sync_db => $sync_db, - rabbit_hosts => $rabbit_hosts, + rabbit_hosts => suffix($rabbit_hosts, ":${rabbit_port}") } } } |