How to Install MCollective on Elementary OS

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.

Prerequisites

Step 1: Install Dependencies

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

Step 2: Install MCollective Server

  1. Download the latest version of MCollective Server from the official Puppet website:

    wget https://downloads.puppet.com/mcollective/mcollective-2.12.4.tar.gz
    
  2. Extract the downloaded archive:

    tar -xzvf mcollective-2.12.4.tar.gz
    
  3. Change directory to the extracted folder:

    cd mcollective-2.12.4/
    
  4. Install MCollective server:

    sudo gem install mcollective --no-ri --no-rdoc
    

Step 3: Install MCollective Client

  1. Install the MCollective client:

    sudo apt-get install -y mcollective-client
    
  2. Configure the MCollective client:

    sudo nano /etc/mcollective/client.cfg
    
  3. 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.

  4. Save the file and exit.

Step 4: Start MCollective server

  1. Start the MCollective server:

    sudo mco rpc status
    
  2. Verify that the MCollective server is running.

Conclusion

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!