ActiveMQ installation
Mcollective server installing on puppet agents.
- If puppet agent not install, install puppet agent sudo apt-get install puppet
- Add the puppetlab repositories.
wget https://apt.puppetlabs.com/puppetlabs-release-trusty.debsudo dpkg -i puppetlabs-release-trusty.debwget https://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.debsudo dpkg -i puppetlabs-release-pc1-trusty.debsudo apt-get update
- Install mcollective and ruby-stomp sudo apt-get install ruby-stomp mcollective
- Ensure that inbound TCP sessions to port 61613 can be created, you can allow all by using the followingsudo iptables -A INPUT -m conntrack –ctstate ESTABLISHED,RELATED -j ACCEPT
- Install the following to run puppet commands sudo apt-get install mcollective-puppet-agent sudo apt-get install mcollective-shell-agent sudo apt-get install mcollective-service-agent
- Configure /etc/mcollective/server.cfg
- service mcollective restart
- Check the logs in file tail -f /var/log/mcollective.log
Mcollective client installing on puppet master.
- If puppet master not install, install puppet master sudo apt-get install puppetmaster.
- Add the puppetlab repositories. wget https://apt.puppetlabs.com/puppetlabs-release-trusty.debsudo dpkg -i puppetlabs-release-trusty.debwget https://apt.puppetlabs.com/puppetlabs-release-pc1-trusty.debsudo dpkg -i puppetlabs-release-pc1-trusty.debsudo apt-get update
- Install MCollective client sudo apt-get install mcollective-client.
- Configure /etc/mcollective/client.cfg.
- Install mcollective-puppet-client to run puppet commands sudo apt-get install mcollective-puppet-client.
- Run command mco puppet runonce
- Check the logs in file /var/log/puppet/masterhttp.log