DarkMatter in Cyberspace
  • Home
  • Categories
  • Tags
  • Archives

CFEngine Notes


Based on: CFEngine Quick Start Guide

  1. Use 10.21.3.23 as cfhub (server), 10.21.3.31 as cfhost (client);

  2. 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;

  3. Start policy server: /var/cfengine/bin/cf-agent -B 10.21.3.23;

  4. Start client: same as above;

  5. On cfhub: create a file cftest1.cf at /var/cfengine/masterfiles;

  6. Modify /var/cfengine/masterfiles/promises.cf file;

  7. ...

Uninstall CFEngine3

$ sudo apt-get purge cfengine-community

$ sudo rm -rf /var/cfengine

bcfg2

  1. Use 10.21.3.31 as server: apt-get install bcfg2-server;

  2. Use 10.21.3.23 as client: apt-get install bcfg2;

  3. Initialize your repository

cdist

  1. install python3: apt-get install python3;

  2. git clone git://git.schottelius.org/cdist;



Published

Aug 15, 2013

Last Updated

Aug 15, 2013

Category

Tech

Tags

  • cfengine 1

Contact

  • Powered by Pelican. Theme: Elegant by Talha Mansoor