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.
Before you begin, make sure that you have the following prerequisites installed on 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
pkg_add mcollective-client mcollective-common mcollective-middleware
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
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.
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!