Check and install promises

From techdocs
Revision as of 10:33, 5 September 2023 by Plinich (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Type: file, executable script

Location: /usr/local/administration/check_and_install_promises on the cfengine hub.

check_and_install_promises is a shell script which runs m4 to process the /var/lib/cfengine/masterfiles/promises.m4 file to create the cfengine promises.cf from component *.inc files in the same directory.

Once created, the script runs cf-promises to validate the new promises.cf. Once validated, the file is copied to /var/lib/cfengine3/inputs/ from whence it is distributed to all the cfengine client hosts as part of their regular cf-agent update runs.

check_and_install_promises must be run manually on the cfengine hub after any changes are made to the promises.cf components.