cluster:Cfengine/228/server

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

Contents

Cfengine/228/server

Prepare

Operating system
  • Scientific Linux version 4.5 64 bit

Optimizing the configuration:


Use minimal operating system installation without firewall. To verify installed packages use the command

  • rpm -qa | grep package_name

Install the following additional packages:

  • yum -y install wget yum rpm make gcc gcc-c++ tar sed zlib openssl

After the installation is complete, turn off any unnecessary services (like gpm, sendmail, cups, haldaemon, messagebus, pcmcia, anacron, atd) with the following command:

  • chkconfig <SERVICE> off

Configure the following settings for the server:


Additional software packages
  • Berkeley DB version 4
  • OpenSSL (openssl.i686 krb5-libs.i386 openldap.i386 cyrus-sasl.i386 compat-openldap.i386)
Firewall configuration

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

Install

The following steps are needed to install a Cfengine Server. Execute as root user:

Configure

Setup basic configuration files

  • You must edit the following files to reflect your hostnames, domain name a.s.o.
cfagent.conf
update.conf (change your domain and IP address for your policyhost (cfengine server))
cf.main (change your site, domain  and IP address for your policyhost (cfengine server))
cf.site (list of name of config files which should be distributed - and edit the /etc/motd on client)
cf.groups (edit role_cfengine_master and group your hosts with equal services together)
cfservd.conf (change domain name and grant access for the files, which will be distributed)
  • Setup the configuration for each file/directory which should be distributed:
cf.CAcerts (distribute the ROOT CA certificates)
cf.dgridmap (distribute the /etc/grid-security/grid-mapfile)
cf.etc-group (distribute the file /etc/group)
cf.etc-passwd (distribute the file /etc/passwd)
cf.ogsadai-roles (update the ogsadai role mapping)
cf.unicore-uudb (update the Unicore UUDB)
Keep data sets, which will be distributed with cfengine up to date

Many data sets or directories are distributed with cfengine in this reference installation. So additional work should be done on the cfengine server to keep these files up to date:

  • /etc/grid-security/certificates/*: The Revocation lists must be up to date every day. So get the newest ROOT CA certificates and install the fetch-crl script.
  • The scripts for updating /etc/group and /etc/passwd are also distributed and then executed with cfengine.
  • The dgridmap script for updating grid-mapfiles should run every day, to support all VO and local users
  • The script for updating the OGSA-DAI role mapping have to be executed on the OGSA-DAI server
  • The script for updating the Unicore UUDB have to be executed on the Unicore NJS server

The Following Steps are needed:

  1. ROOT CA certificates Update
  2. merge-passwd.pl and merge-group.pl scripts for updating the /etc/passwd and /etc/group. In order to update the full list of users (VO users AND all local users), the following two perl scripts are distributed by the cfengine server to all nodes: Merge-passwd.pl for updating passwd; Merge-group.pl for updating groups (VOs). These scripts will be executed after distribution and needs as inputs the actual passwd and group files for D-Grid users: passwd-dgrid actual passwd file; group-dgrid actual group file
  3. script dgridmap for updating the user mapping on all middleware frontends
  4. updateRoleMap.sh script for updating the role mapping for OGSA-DAI. In order to update the role mapping for OGSA-DAI from the newest ogsadai grid-mapfile, the following script is distributed by the cfengine server and will be executed only on the ogsadai server: /etc/grid/etc/updateRoleMap.sh for updating OGSA-DAI role mapping
  5. updateUUDB.sh script for updating the UUDB for Unicore. In order to update the UUDB for Unicore from the newest D-Grid UUDB file, the following script is distributed by the cfengine server and will be executed only on the Unicore NJS server: /etc/grid/etc/updateUUDB.sh for updating the Unicore UUDB
  • In order to update the full list of users (VO users AND all local users), the following two perl scripts are distributed by the cfengine server to all nodes:
script:Merge-passwd.pl for updating passwd 
script:Merge-group.pl for updating groups (VOs)

These scripts will be executed after distribution and needs as inputs the actual passwd and group files for D-Grid users:

passwd-dgrid actual passwd file 
group-dgrid actual group file


Proceed

To start/stop cfengine use the commands:


Initial test

Try examining the output:

Update

To update/reinstall/delete cfengine packages, use: