Installing MCollective on OpenBSD
MCollective is a framework for building server automation systems using the Ruby programming language. This tutorial will guide you through the steps required to install MCollective on OpenBSD.
Prerequisites
Before you begin, make sure that you have the following prerequisites installed on your system:
- OpenBSD 6.2 or later
- The pkg_add utility
Installation
- Add the Puppet package repository to your system:
echo "pubkey = /etc/ssl/pkg.puppet.com.pem" > /etc/pkg.conf.d/puppet.conf
echo "http://pkg.puppet.com/${OS_VERSION}/products/${ARCH}/current/" >> /etc/pkg.conf.d/puppet.conf
Replace ${OS_VERSION} and ${ARCH} with the appropriate values for your system.
Example for OpenBSD 6.9 on amd64:
echo "pubkey = /etc/ssl/pkg.puppet.com.pem" > /etc/pkg.conf.d/puppet.conf
echo "http://pkg.puppet.com/openbsd/6.9/products/amd64/current/" >> /etc/pkg.conf.d/puppet.conf
- Update the package repository and install the MCollective packages:
pkg_add mcollective-client mcollective-common mcollective-middleware
- Configure the MCollective client:
Create the /etc/mcollective/client.cfg file with the following content:
# The main client configuration file
libdir = /usr/local/libexec/mcollective
logfile = /var/log/mcollective.log
loglevel = info
direct_addressing = 1
factsource = puppet
Testing
To test your installation, you can run the following command to verify that the MCollective client is working:
mco ping
You should see output similar to the following:
node1.example.com time=0.57 ms
node2.example.com time=0.97 ms
---- ping statistics ----
2 replies max: 0.97 min: 0.57 avg: 0.77
Congratulations! You have successfully installed MCollective on OpenBSD.