All pastes #237409 Raw Edit

centosian

public text v1 · immutable
·published 2006-11-04 15:05 UTC
rendered paste body
#update.conf
#######
#
# BEGIN update.conf
#
#   # this comment based on one at http://www.cfengine.org/confdir/update.html
#   and http://www.delorie.com/gnu/docs/cfengine/cfengine-Tutorial_16.html
#
# This script distributes the configuration. It's a simple file so that,
#  if there are syntax errors in the main config, we can still
#  distribute a correct configuration to the machines afterwards, even
#  though the main config won't parse. 
# It is read and run just before the main configuration is parsed.
#
# from http://www.sage.org/pubs/whitepapers/brown.pdf
#  retrieve latest cfengine config files
#  from the server, need this file installed in
#  working dir (/var/cfengine/inputs) to ?~@~X bootstrap?~@~Y
#  cfengine (bring in rest of configfiles), e.g:
#######

groups:
    cfengine_server = ( vw3.dom.com )

control:
    actionsequence = ( directories copy links tidy )
    domain = ( dom.com )
    workdir = ( /var/cfengine )
    policyhost = ( vw3.dom.com )
    master_cf_input = ( /home/admin/conf/cfengine )
    cf_install_dir = ( /usr/local/sbin )
    IfElapsed = ( 0 )
    !cfengine_server::
        SplayTime = ( 5 )


directories:
    /var/cfengine/bin

links:
    /var/cfengine/bin/cfagent -> /usr/local/sbin/cfagent

copy:
    $(master_cf_input)  dest=$(workdir)/inputs
                        r=inf
                        mode=644
                        ignore=CVS
                        type=binary
                        exclude=*.lst
                        exclude=*~
                        exclude=*.swp
                        exclude=#*
                        server=$(policyhost)

tidy:
    $(workdir)/outputs pattern=* age=365