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

added support for short hostnames in rhmk_servers due to rabbitmq issue

parent 023c9df6
No related branches found
No related tags found
2 merge requests!31Mitaka,!30Dev roadtomitaka
......@@ -6,6 +6,7 @@ class iaas::profile::rabbitmq (
$erlang = undef,
$node_hostname = $::hostname,
) {
$short_hostname_servers = regsubst($servers, '\..*','\1')
class {'erlang': } ->
package { 'erlang-base':
ensure => 'latest',
......@@ -16,7 +17,7 @@ class iaas::profile::rabbitmq (
port => 5672,
delete_guest_user => true,
config_cluster => true,
cluster_nodes => $servers,
cluster_nodes => $short_hostname_servers,
erlang_cookie => $erlang,
cluster_node_type => 'ram',
wipe_db_on_cookie_change => true,
......
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