cluster:Cfengine/229/client

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

Contents

Cfengine/229/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: