Skip to content
Snippets Groups Projects
Commit 848737db authored by Riccardo Bucchi's avatar Riccardo Bucchi
Browse files

Merge branch 'rabbitmq-priv' into 'dev'

insered a variable (default on classic hostname) in rhmk role for changing hostn…

…ame in /etc/rabbitmq/rabbitmq-env.conf

See merge request !14
parents c7ec7311 09bd4f2a
No related branches found
No related tags found
1 merge request!23Dev
...@@ -5,6 +5,7 @@ class iaas::profile::rabbitmq ( ...@@ -5,6 +5,7 @@ class iaas::profile::rabbitmq (
$user = undef, $user = undef,
$password = undef, $password = undef,
$erlang = undef, $erlang = undef,
$node_hostname = $::hostname,
) { ) {
class {'erlang': } -> class {'erlang': } ->
package { 'erlang-base': package { 'erlang-base':
...@@ -21,6 +22,9 @@ class iaas::profile::rabbitmq ( ...@@ -21,6 +22,9 @@ class iaas::profile::rabbitmq (
wipe_db_on_cookie_change => true, wipe_db_on_cookie_change => true,
cluster_partition_handling => 'pause_minority', cluster_partition_handling => 'pause_minority',
config_variables => { 'tcp_listen_options' => "[binary, {packet, raw}, {reuseaddr, true}, {backlog, 128}, {nodelay, true}, {exit_on_close, false}, {keepalive, true}]" }, config_variables => { 'tcp_listen_options' => "[binary, {packet, raw}, {reuseaddr, true}, {backlog, 128}, {nodelay, true}, {exit_on_close, false}, {keepalive, true}]" },
environment_variables => {
'NODENAME' => "rabbit@$node_hostname",
},
} -> } ->
rabbitmq_user { $user: rabbitmq_user { $user:
admin => true, admin => true,
......
...@@ -9,6 +9,7 @@ class iaas::role::rhmk( ...@@ -9,6 +9,7 @@ class iaas::role::rhmk(
$haproxy_controller_hosts = undef, $haproxy_controller_hosts = undef,
$haproxy_controller_ips = undef, $haproxy_controller_ips = undef,
$vip = undef, $vip = undef,
$rabbit_hostname = undef,
) { ) {
# Base # Base
class { 'iaas::profile::base': } -> class { 'iaas::profile::base': } ->
...@@ -28,5 +29,7 @@ class iaas::role::rhmk( ...@@ -28,5 +29,7 @@ class iaas::role::rhmk(
state => $keepalived_state, state => $keepalived_state,
priority => $keepalived_priority, priority => $keepalived_priority,
} }
class { 'iaas::profile::rabbitmq': } class { 'iaas::profile::rabbitmq':
node_hostname => $rabbit_hostname,
}
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment