Table of Contents
Installing from Binary tarball on CoreOS
Table of Contents
CFEngine can be installed into a CoreOS host by means of a generic binary tarball.
First download the binary onto the CoreOS host.
Next unpack the archive:
tar --gunzip --extract --directory / --file ./cfengine-3.10.7-1.pkg.tar.gz
Then install the systemd units:
for each in $(ls /var/cfengine/share/usr/lib/systemd/system); do
cp /var/cfengine/share/usr/lib/systemd/system/${each} /etc/systemd/system/${each}
chmod 664 /etc/systemd/system/${each}
done
systemctl daemon-reload
Next enable the necessary service units:
systemctl enable cf-execd
systemctl enable cf-monitord
systemctl enable cf-serverd
systemctl enable cfengine3
Finally, bootstrap the agent, and start the cfengine services:
export POLICY_SERVER="myhub";
# Bootstrap to hub
/var/cfengine/bin/cf-agent --bootstrap ${POLICY_SERVER}
# Start the cfengine3 service.
systemctl start cfengine3