CFEngine Homepage
  • Home
  • Guide
  • CFEngine Enterprise
  • Examples
  • Reference
  • Download
  • Example Snippets
    • General Examples
    • CFEngine Administration Examples
    • Common Promise Patterns
      • Aborting execution
      • Change detection
      • Check filesystem space
      • Copy single files
      • Create files and directories
      • Customize Message of the Day
      • Distribute ssh keys
      • Ensure a process is not running
      • Ensure a service is enabled and running
      • Find the MAC address
      • Install packages
      • Mount NFS filesystem
      • Restart a Process
      • Set up name resolution with DNS
      • Set up sudo
      • Set up time management through NTP
      • Updating from a central policy server
    • Measuring Examples
    • Software Administration Examples
    • Commands, Scripts, and Execution Examples
    • File and Directory Examples
    • File Template Examples
    • Interacting with Directory Services
    • Database Examples
    • Network Examples
    • System Security Examples
    • System Information Examples
    • System Administration Examples
    • System File Examples
    • Windows Registry Examples
    • File Permissions
    • User Management Examples
  • Tutorials
  • Enterprise API Examples
  • Examples and Tutorials
  • Example Snippets
Table of Contents

Common Promise Patterns

Table of Contents

This section includes includes common promise patterns. Refer to them as you write policy for your system.

  • Aborting execution
  • Change detection
  • Check filesystem space
  • Copy single files
  • Create files and directories
  • Customize Message of the Day
  • Distribute ssh keys
  • Ensure a process is not running
  • Ensure a service is enabled and running
  • Find the MAC address
  • Install packages
  • Mount NFS filesystem
  • Restart a Process
  • Set up sudo
  • Set up time management through NTP
  • Set up name resolution with DNS
  • Updating from a central policy server
  • examples
  • policy
Download all CFEngine documentation for offline reading.


This documentation is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.

See our general information on licenses and terms and conditions.

Updated: 06 July 2022 from [markdown source] .

CFEngine

470 Ramona Street,

Palo Alto, CA 94301

Phone: +1 650 560-4888

Contact Us

Left Menu Go to Top Table of Content