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:
parent
72cbc9cdfa
commit
6ed7bd7ac1
|
@ -18,7 +18,7 @@ if ($detach_rabbitmq_plugin) {
|
||||||
$rabbit_nodes_names = keys($rabbit_address_map)
|
$rabbit_nodes_names = keys($rabbit_address_map)
|
||||||
$settings_hash = parseyaml($yaml_additional_config)
|
$settings_hash = parseyaml($yaml_additional_config)
|
||||||
|
|
||||||
case hiera('role', 'none') {
|
case hiera_array('roles', 'none') {
|
||||||
/rabbitmq/: {
|
/rabbitmq/: {
|
||||||
$rabbit_enabled = true
|
$rabbit_enabled = true
|
||||||
$corosync_roles = $rabbitmq_roles
|
$corosync_roles = $rabbitmq_roles
|
||||||
|
@ -26,11 +26,8 @@ if ($detach_rabbitmq_plugin) {
|
||||||
# Set to true HA
|
# Set to true HA
|
||||||
$corosync_nodes = $rabbit_nodes
|
$corosync_nodes = $rabbit_nodes
|
||||||
}
|
}
|
||||||
/controller/: {
|
|
||||||
$rabbit_enabled = false
|
|
||||||
}
|
|
||||||
default: {
|
default: {
|
||||||
$rabbit_enabled = true
|
$rabbit_enabled = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue