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

Configuring a System
Using Distributed Systems Administration Utilities
Chapter 3170
These same domain edits must also be performed in cf.main and
cfservd.conf as well. See below. Use cfagent’s -p (--parse-only)
flag to verify the syntax of update.conf.
List Managed Clients in cfrun.hosts
cfrun requires that all managed clients be listed in the file
cfrun.hosts. Since each cluster member is considered a client,
make sure each member is listed in
/csync/dsau/cfengine_master/inputs/cfrun.hosts.
Edit it and add the hostnames of each member, one per line. It is
simplest to make sure that all the host names are fully qualified.
When using fully qualified hostnames, the “domain = line” is not
required and can be deleted. If using unqualified hostnames, find the
line “domain = <%DOMAIN_NAMER%>” and replace the token with the
DNS domain of the cluster members. This restricts all the clients to
be members of that single domain.
Edit the Master Policy File
The file /var/opt/dsau/cfengine_master/inputs/cfagent.conf
is the master policy file. The default cfagent.conf includes the
default template cf.main which is a commented template file with
examples of common synchronization actions for both standalone
systems and Serviceguard clusters. Edit cf.main to replace the
following tokens: cf.main contains the same
<%HOST_NAMER%>
and
<%DOMAIN_NAMER%>
tokens as update.conf. Perform the same edits
described in item 3 in the previous bulleted item, “Initial Policy File
Customization.
Note that this default template performs no management actions. All
the action lines are commented out. It does contain many examples
specific to synchronizing files in a Serviceguard cluster. This is a
starting point for creating a custom set of cfengine policies and
actions for your cluster and other managed clients.
The cfengine reference manual which documents the syntax and all
the possible management actions defined in this file is located in
/opt/dsau/doc/cfengine/.
Other example cfengine configuration files which are included with
the open source cfengine distribution are located in
/opt/dsau/share/cfengine/examples.