Skip to content

Instantly share code, notes, and snippets.

@groob
Created April 27, 2013 19:33
Show Gist options
  • Save groob/5474377 to your computer and use it in GitHub Desktop.
Save groob/5474377 to your computer and use it in GitHub Desktop.
Installing mcollective 2.2.3 on OS X 10.8
# main config
libdir = /usr/share/mcollective/plugins
logfile = /var/log/mcollective.log
daemonize = 1
keeplogs = 1
max_log_size = 10240
loglevel = debug
identity = my_laptop
registerinterval = 300
# connector plugin config
connector = activemq
plugin.activemq.pool.size = 1
plugin.activemq.pool.1.host = localhost
plugin.activemq.pool.1.port = 61613
plugin.activemq.pool.1.user = mcollective
plugin.activemq.pool.1.password = marionette
# facts
factsource = yaml
plugin.yaml = /etc/mcollective/facts.yaml
# security plugin config
securityprovider = psk
plugin.psk = abcde
brew update
# install activemq
brew install activemq
# install stomp gem
sudo gem install stomp
# download mcollective
curl -O http://downloads.puppetlabs.com/mcollective/mcollective-2.2.3.tgz
tar xvf mcollective-2.2.3.tgz
cd mcollective-2.2.3
cp ext/Makefile .
# install mcollective
sudo make install
cd /usr/local/Cellar/activemq/5.8.0/libexec/conf
mv activemq.xml activemq-backup.xml
curl -O https://raw.github.com/puppetlabs/marionette-collective/master/ext/activemq/examples/single-broker/activemq.xml
sudo /usr/local/bin/activemq start
# Here it prompted me to install java.
# after I did, i ran the command again
# sudo /usr/local/bin/activemq start
sudo /usr/local/bin/activemq status
# ActiveMQ is running (pid '25405')
cd /etc/mcollective
vim server.cfg
# paste server.cfg
vim client.cfg
# paste client.cfg
# start the mcollective server
sudo /usr/sbin/mcollectived
# test to make sure it's working
sudo mco ping
# main config
libdir = /usr/share/mcollective/plugins
logfile = /var/log/mcollective_server.log
daemonize = 1
keeplogs = 1
max_log_size = 10240
loglevel = debug
identity = my_server
registerinterval = 300
# connector plugin config
connector = activemq
plugin.activemq.pool.size = 1
plugin.activemq.pool.1.host = localhost
plugin.activemq.pool.1.port = 61613
plugin.activemq.pool.1.user = mcollective
plugin.activemq.pool.1.password = marionette
# facts
factsource = yaml
plugin.yaml = /etc/mcollective/facts.yaml
# security plugin config
securityprovider = psk
plugin.psk = abcde
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment