cluster:Cfengine/3/agent

From Dgiref
Jump to: navigation, search
Please open a NGI-DE ticket if you experience any Installation or Configuration problem.

Contents

cfengine agent v.3.x

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:

Firewall configuration

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

Install

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

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

Configure

To configure the cfengine v.3 agent, the following steps should be done:

  1. download the cf3.preconf from codebase repository into cfengine directory /var/cfengine/
  2. change mode to executable and execute /var/cfengine/cf3v.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.