Cfengine 3 code snippets

Here you can download the Cfengine 3 code snippets which are the result of my little Cfengine 3 introduction series. Most of them should also be available at the official Cfengine 3 design center on GitHub.

Cfengine 3 code snippet #001: Creating and editing files
Cfengine 3 code snippet #002: Check for running services and start them if necessary
Cfengine 3 code snippet #003: Install packages automatically
Cfengine 3 code snippet #004: Mounting NFS shares
Cfengine 3 code snippet #005: Managing APT sources.list files
Cfengine 3 code snippet #006: Running simple shell commands
Cfengine 3 code snippet #007: Configuring sshd or any other service
Cfengine 3 code snippet #008: Simple reporting
Cfengine 3 code snippet #009: Using an environment variable
Cfengine 3 code snippet #010: Monitoring the CPU load
Cfengine 3 code snippet #011: Deleting old files
Cfengine 3 code snippet #012: Setting ACLs with the community version
Cfengine 3 code snippet #013: Monitoring the Apache web server
Cfengine 3 code snippet #014: Creating new symlinks
Cfengine 3 code snippet #015: Check if an user exists
Cfengine 3 code snippet #016: Add a new user
Cfengine 3 code snippet #017: Setting file permissions and ownerships
Cfengine 3 code snippet #018: Setting up Ntop
Cfengine 3 code snippet #019: Performing simple backups