cluster:Cfengine/302/server

From Dgiref
Jump to: navigation, search

See also troubleshooting for this page.


Please open a NGI-DE ticket if you experience any Installation or Configuration problem.

Contents

cfengine policyhost v.3.0.2

Prepare

Strictly speaking, the cfengine software do not use a client-server model. It can be named as an agent-server model, where server is an agent, installed into the master host. The reference installation configuration are stored into the subversion (svn) repository of Karlsruhe Institute of Technology. Thus, some preparation steps include:

  • download the dgiref.repo from http://mirror.scc.kit.edu/downloads/yum.repo/sl-dgiref.repo into /etc/yum.repos.d/
  • install subversion to communicate with svn server
  • install the dependencies (db4 db4-devel pcre gcc byacc flex bison openssl openssl-devel) packages
  • to install the current CAs certificates manually, please use this link
Firewall configuration

Port 5308 should be open (how to open port in firewall).

Install

The following step is needed to install a cfengine server (execute as root user):

Note-icon.png
  
use yum or rpm to install cfengine masterhost from http://mirror.scc.kit.edu/downloads/

Configure

  1. download the cf3-srv.preconf from codebase repository into cfengine directory /var/cfengine/
  2. change mode to executable and execute /var/cfengine/cf3-srv.preconf bash script.
  3. configure the site by changing the parameters in the /var/cfengine/masterfiles/inputs/library/variables.cf
  4. run cf-agent to constrain cfengine master host configuration

Proceed

To run the agent use the cf-agent command.

Initial test

Examine the output for the cf-agent or test the individual promise with cf-promise promise.name

Update

Use yum update/remove to update or remove the package.

Personal tools