Look up through all the roles

In order to either enable or disable rabbitmq it requires to search
through all the roles of node.

Change-Id: Ifaa615585a5e60daee7dd4fda2d6f2e8506db3b2
Closes-Bug: #1492312
This commit is contained in:
Michael Polenchuk 2015-09-04 20:08:02 +03:00
parent 72cbc9cdfa
commit 6ed7bd7ac1
1 changed files with 2 additions and 5 deletions

View File

@ -18,7 +18,7 @@ if ($detach_rabbitmq_plugin) {
$rabbit_nodes_names = keys($rabbit_address_map)
$settings_hash = parseyaml($yaml_additional_config)
case hiera('role', 'none') {
case hiera_array('roles', 'none') {
/rabbitmq/: {
$rabbit_enabled = true
$corosync_roles = $rabbitmq_roles
@ -26,11 +26,8 @@ if ($detach_rabbitmq_plugin) {
# Set to true HA
$corosync_nodes = $rabbit_nodes
}
/controller/: {
$rabbit_enabled = false
}
default: {
$rabbit_enabled = true
$rabbit_enabled = false
}
}