MCollective is a powerful framework for building server orchestration or parallel job execution systems. In this tutorial, we will walk you through the steps to install MCollective on Elementary OS.
First, update your system's package repository and install the required dependencies.
sudo apt-get update
sudo apt-get install -y ruby ruby-dev rubygems build-essential wget unzip
Download the latest version of MCollective Server from the official Puppet website:
wget https://downloads.puppet.com/mcollective/mcollective-2.12.4.tar.gz
Extract the downloaded archive:
tar -xzvf mcollective-2.12.4.tar.gz
Change directory to the extracted folder:
cd mcollective-2.12.4/
Install MCollective server:
sudo gem install mcollective --no-ri --no-rdoc
Install the MCollective client:
sudo apt-get install -y mcollective-client
Configure the MCollective client:
sudo nano /etc/mcollective/client.cfg
Add the following lines to the file:
libdir = /usr/libexec/mcollective
# Set SSL mode to none
plugin.ssl_mode = none
# Set connector to activemq
plugin.connector = activemq
# Set activemq settings
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 = PASSWORD
plugin.activemq.pool.1.ssl = false
Replace PASSWORD
with a strong password for the MCollective user.
Save the file and exit.
Start the MCollective server:
sudo mco rpc status
Verify that the MCollective server is running.
Congratulations! You have successfully installed MCollective on your Elementary OS system. Now you can use the MCollective client to control your servers and execute parallel jobs.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!