APPENDIX BWriting cfengine Modules
Cfengine automatically sets a large number of classes at runtime based on attributes of the system. These are classes based on the IP address of the system, the operating system (e.g., linux
or solaris
), the date and time, and many other attributes. Many predefined cfengine classes are shown and explained in Chapter 4.
Cfengine modules are designed for the definition of custom classes. Modules allow you to write code to extend cfengine, so that it can detect new situations and site-specific conditions. We say "designed for" because it's possible to use modules to implement system changes as well. We'll focus on what modules are designed for and then briefly touch on other uses. We'll explain the requirements ...
Get Automating Linux and Unix System Administration, Second Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.