Skip to content

Instantly share code, notes, and snippets.

@AutomationD
Created May 16, 2014 23:01
Show Gist options
  • Save AutomationD/e799c893e3ce66b9ce9c to your computer and use it in GitHub Desktop.
Save AutomationD/e799c893e3ce66b9ce9c to your computer and use it in GitHub Desktop.
class cluster::tdqueue::node {
class {'company::limits-performance':
notify => Service['rabbitmq-server'],
}
class { 'rabbitmq':
config_cluster => true,
cluster_nodes => ['tdqueue1a.company.prod', 'tdqueue1b.company.prod'],
cluster_node_type => 'ram',
config_mirrored_queues => true,
wipe_db_on_cookie_change => true,
erlang_cookie => 'EOKOWXQREETZSHFNTPEYA',
#erlang_enable => true,
admin_enable => true,
environment_variables => {
'RABBITMQ_NODENAME' => $::fqdn,
'RABBITMQ_SERVICENAME' => 'RabbitMQ',
'RABBITMQ_USE_LONGNAME' => 'true',
},
require => Package['erlang'],
}
package { "erlang":
ensure => installed,
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment