Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • DownloadDownload
  • PrintPrint
Share this Page URL
Help

CHAPTER 5: Bootstrapping a New Infrastru... > Creating the cfengine Config Files

Creating the cfengine Config Files

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

  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial