Based on: CFEngine Quick Start Guide
-
Use 10.21.3.23 as cfhub (server), 10.21.3.31 as cfhost (client);
-
Install cfengine on both cfhub and cfhost:
i. download cfengine-community_3.5.1-3_i386.deb;
i. Ensure OpenSSL, BerkeleyDB and PCRE are installed:
apt-get install libdb4.* libpcre3 libssl
, so weired that this can not be excecuted in zsh, but bash is ok;i.
sudo dpkg --install cfengine-community_3.5.1-3_i386.deb
; -
Start policy server:
/var/cfengine/bin/cf-agent -B 10.21.3.23
; -
Start client: same as above;
-
On cfhub: create a file cftest1.cf at /var/cfengine/masterfiles;
-
Modify /var/cfengine/masterfiles/promises.cf file;
-
...
Uninstall CFEngine3
$ sudo apt-get purge cfengine-community
$ sudo rm -rf /var/cfengine
bcfg2
-
Use 10.21.3.31 as server:
apt-get install bcfg2-server
; -
Use 10.21.3.23 as client:
apt-get install bcfg2
;
cdist
-
install python3:
apt-get install python3
; -
git clone git://git.schottelius.org/cdist
;