Managing Systems and Workgroups: A Guide for HP-UX System Administrators

Configuring a System
Using Distributed Systems Administration Utilities
Chapter 3 169
# cp /opt/dsau/share/cfengine/templates/update.conf.template update.conf
# cp /opt/dsau/share/cfengine/templates/cfagent.conf.template cfagent.conf
# cp /opt/dsau/share/cfengine/templates/cfrun.hosts.template cfrun.hosts
# cp /opt/dsau/share/cfengine/templates/cfservd.conf.template cfservd.conf
3. Edit update.conf. This file has a format similar to cfengine’s
main configuration file cfagent.conf. It is used to transfer and
update cfengine binaries and any updated configuration
definitions files (for example, cfagent.conf) to the managed
clients. It is critical to keep this file very simple and avoid errors.
Errors in this file will require manually copying a new version to
each managed client.
The file contains tokens in the form
<%token name%>
which are
replaced by the csync_wizard with the administrator’s answers
to questions. Replace the tokens as follows:
Replace <%HOST_NAMER%> with the unqualified
hostname of the Serviceguard package.
Replace <%DOMAIN_NAMER%> with the package’s DNS
domain name. For example:
host_name = ( “package-hostname”)
domain_name = ( “abc.xyz.com”)
Note that this update.conf template assumes that the master
server and its clients are all in a single DNS domain. If your
master server will have managed clients in multiple DNS
domains, change update.conf as follows:
Replace <%HOST_NAMER%> with the fully qualified
hostname of the Serviceguard package.
Delete the “domain_name” variable.
Replace the line domain = ( “${domain_name}” ) with the
following:
domain = ( ExecResult(/sbin/awk ‘/domain/ {print
$2}’ /etc/resolv.conf) )
This sets the domain variable appropriately on the
client-side.