Scripts

From Cfwiki

Jump to: navigation, search

Scripts

Ph.pl: A Permissions harvester for CFEngine: enables a snapshot of a system to have CFEngine enforce existing permissions

cfenginedoc: This tool build a graphical diagram with GraphViz that represents the importing and flow of your cfengine scripts. Soon it will offer documenting your scripts with NaturalDocs.

Arpmats: This tool allows you to specify which packages you want installed on which classes of systems (cfengine classes), and then ensures that they are installed.

push-cfagent: This script pushes the cfengine packages to a remote host via ssh. It uses "/etc/redhat-release","/etc/lsb-release" or "/etc/debian_version" on the remote host to determine the distribution, and sends RPM/apt-get/yum commands to it accordingly to get the package installed. (Using lsb_version is on the todo list). Once in place, it sends your update.conf file and attempts to run cfagent -q for you. Tested with: RedHat 9, Fedora Core 1,2,3,4,5, SuSE 9, and Debian Sarge. Solaris pkg-get support to be added soon. Example: cd /path/to/cfengine-master-files; ./scripts/push-cfagent host1 host2 ... /path/to/hostname-list-in-file1 ...

cfengine_stanzas.pl A small script to take a set of cfagent config files, a list of classes, and return the stanzas that will apply.

yum_file_parser.pl Glue for yum+cfengine.

classes2csv A cfengine module and utility script (both perl) to enable the use of cfengine class information (classes and their member hosts, or hosts and their class memberships) outside of cfengine. Can also be used to evaluate class expressions, e.g., '(A|B).!C' The module parses a classes.cf file, and outputs a colon-separated-value text file listing hosts and their respective classes. The utility, c2h (for classes2hosts, and vice versa) can be used from the commandline or from other programs to return current class info. Note that only 'simple-user-defined' classes are available this way (no 'hard' or 'runtime' type class information). The tarfile contains sample cfengine configurations and usage examples.


SVN Syntax Check Hook A subversion hook script to check the syntax of your .cf files before it allows you to commit them.

Quick Links

Main Page - Overview - Glossary - Links - Articles - Wishlist - Tips, Tricks and Notes - Current Events
Interview - Support - Books - Help - Mascot - Motto - All Pages - Statistics - Cfwiki.org Changes

Personal tools