Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class yzguy_profiles::rabbitmq {
- if $::hostname {
- /^rabbitmqt[0-9]+/~ {
- $cluster_node_group = ['rabbitmqt01', 'rabbitmqt02', 'rabbitmqt03']
- }
- /^rabbitmqp[0-9]+/~ {
- $cluster_node_group = ['rabbitmqp01', 'rabbitmqp02', 'rabbitmqp03']
- }
- default {
- notify("No cluster nodes")
- }
- class { '::erlang':
- require => Class['epel'],
- }
- class { '::rabbitmq':
- port => '5672',
- delete_guest_user => true,
- erlang_cookie => 'ABC123ABC123',
- wipe_db_on_cookie_change => true,
- config_cluster => true,
- cluster_nodes => $cluster_node_group,
- cluster_node_type => 'disc',
- require => Class['epel'],
- }
- rabbitmq_user { 'admin':
- admin => true,
- password => 'admin',
- }
- rabbitmq_user { 'yzguy':
- admin => true,
- password => 'yzguy',
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement