Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.
As previously mentioned, cfengine looks for configuration files in a directory called inputs, usually located at /var/cfengine/inputs (or /var/lib/cfengine2/inputs on Debian). In our initial configuration, as well as our configurations going forward, cfagent.conf will be made up entirely of import statements. You'll find that import statements in cfengine resemble includes in most programming languages—the imported file is read in and used as if it were content in the original file. For the cfengine configuration file sections such as control and classes, cfagent.conf will import files in the control and classes directories. We'll create the directories first (as root):
# cd /var/lib/cfengine2/masterfiles/PROD/inputs
# mkdir -p hostgroups tasks/os tasks/app tasks/misc control classes modules filters