1 ) Install RabbitMQ Prerequisites
apt-get install -y erlang-base erlang-nox
2 ) Install RabbitMQ from the Download Site
wget http://www.rabbitmq.com/releases/rabbitmq-server/v2.8.1/rabbitmq-server_2.8.1-1_all.deb dpkg -i rabbitmq-server_2.8.1-1_all.deb
3 ) Enable the stomp and AMQ plugins
rabbitmq-plugins enable amqp_client rabbitmq-plugins enable rabbitmq_stomp
4 ) Create the rabbitmq config file in /etc/rabbitmq/rabbitmq.config
%% Single broken configuration [ {rabbitmq_stomp, [{tcp_listeners, [{"0.0.0.0", 6163}, {"::1", 6163}]}]} ].
5 ) Create the MCollective Users
rabbitmqctl add_user mcollective PASSWORD rabbitmqctl set_user_tags mcollective administrator rabbitmqctl set_permissions -p / mcollective ".*" ".*" ".*"
6 ) Restart RabbitMQ
/etc/init.d/rabbitmq-server restart
7 ) Edit /etc/mcollective/client.conf to point to the local host
##### # Example config topicprefix = /topic/ main_collective = mcollective collectives = mcollective libdir = /usr/share/mcollective/plugins logfile = /dev/null loglevel = info # Plugins securityprovider = psk plugin.psk = unset connector = stomp plugin.stomp.host = localhost plugin.stomp.port = 6163 plugin.stomp.user = mcollective plugin.stomp.password = PASSWORD # Facts factsource = yaml plugin.yaml = /etc/mcollective/facts.yaml
8 ) Edit /etc/mcollective/server.cfg to point to the localhost
#### # Example server.cfg topicprefix = /topic/ main_collective = mcollective collectives = mcollective libdir = /usr/share/mcollective/plugins logger_type = syslog loglevel = info daemonize = 1 registerinterval = 30 classesfile = /var/lib/puppet/state/classes.txt # Plugins securityprovider = psk plugin.psk = unset connector = stomp plugin.stomp.host = 127.0.0.1 plugin.stomp.port = 6163 plugin.stomp.user = mcollective plugin.stomp.password = PASSWORD # Facts factsource = yaml plugin.yaml = /etc/mcollective/facts.yaml