cluster:Cfengine/229

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

Contents

cfengine v.2.2.9 server

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 server (execute as root user):

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

Configure

Step-by-step instruction to configure the cfengine agent onto the master host:

  1. download the cf.preconf from http://svn.rz.uni-karlsruhe.de/svn/dgiref/PROD into cfengine directory /var/cfengine/
  2. download the update-cfg configuration file from http://svn.rz.uni-karlsruhe.de/svn/dgiref/PROD into cfengine directory /var/cfengine/
  3. change mode for cf.preconf and update-cfg to executable
  4. run cfagent -qv --update-only to constrain cfengine master host configuration
  5. update your site configuration with update-cfg script, by changing the cfengine classes values to the current site configuration.

Proceed

To run cfengine agent, type

  • cfagent or
  • cfagent -qv for verbose mode or
  • cfagent -qvK immediately execute without scheduling.

Initial test

Try examining the output:

Update

To update/remove cfengine packages, use:

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

cfengine v.2.2.9 client

Prepare

Download the dgiref.repo from http://svn.rz.uni-karlsruhe.de/svn/dgiref/PROD/repl/root/etc/yum.repos/sl-dgiref.repo into /etc/yum.repos.d/ to prepare cfengine client installation.

Firewall configuration

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

Install

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

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

Configure

Step-by-step instruction to configure the cfengine agent onto the host:

  1. download the cf.preconf configuration file from http://svn.rz.uni-karlsruhe.de/svn/dgiref/PROD/inputs/cf.preconf or your cfengine server (master host) /etc/cfengine/inputs directory into cfengine directory /etc/cfengine/
  2. change mode for cf.preconf to executable
  3. run cfagent -qv --update-only to create cfengine clienthost configuration
  4. run cfagent -qv to execute cfengine clienthost configuration

WARNING: if you have problems with keys, make the key exchange

  • copy server public key to client:

scp root@$MASTERHOST:/var/cfengine/ppkeys/localhost.pub root@$CLIENT:/var/cfengine/ppkeys/root-$MASTERHOST.pub

  • copy client public key to server:

scp root@$CLIENT:/var/cfengine/ppkeys/localhost.pub root@$MASTERHOST:/var/cfengine/ppkeys/root-$CLIENT.pub

Proceed

To run cfengine agent, type

  • cfagent or
  • cfagent -qv for verbose mode or
  • cfagent -qvK immediately execute without scheduling.

Initial test

Try examining the output:

Update

To update/remove cfengine packages, use:

Personal tools