Cfengine configuration directory

Structuring the cfagent.conf file

Relevant classes: any

If your configuration is getting large, you should think about splitting it up into logical modules. Here is what a cfagent.conf file looks like, in the extreme case in which you use cfagent.conf only to import different sub-files.
##############################################
# 
#  cfagent.conf ( example.org )
#
#  This file is for root only.
#
##############################################

###
#
# BEGIN cfagent.conf (Only hard classes in this file )
#
###

import:

   #
   # Split things up to keep things tidy
   #

Relevant classes:

any:: cf.groups cf.main cf.environ nexus:: cf.examsys any.!excepthost:: cf.site cf.services cf.motd cf.printer cf.www cf.mail hpux:: cf.hpux debian.!matrix:: cf.debian redhat:: cf.redhat SuSE:: cf.suse solaris:: cf.solaris sun4:: cf.sun4 ultrix:: cf.ultrix freebsd:: cf.freebsd homemachines:: cf.users matrix:: cf.matrix ### # # END cfagent.conf # ###
Back to documentation