Managing Systems and Workgroups: A Guide for HP-UX System Administrators
Configuring a System
Using Distributed Systems Administration Utilities
Chapter 3164
# cd /var/opt/dsau/cfengine_master/inputs
# cp /opt/dsau/share/cfengine/templates/cf.main.template cf.main
# 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. Next, 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 nam%>
that are
replaced by the csync_wizard with the administrator’s answers to
questions. Replace the tokens as follows:
a. Replace <%HOST_NAMER%> with the unqualified hostname of the
master server.
b. Replace <%DOMAIN_NAMER%> with the master server’s domain
name. For example:
host_name = ( “master-server-name” )
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:
c. Replace <%HOST_NAMER%> with the fully qualified hostname of
the master server..
d. Delete the <domain_name> variable.
e. 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.
Note that this technique assumes /etc/resolv.conf is properly
configured on each managed client.