Check and install promises: Difference between revisions

From techdocs
Jump to navigation Jump to search
(Created page with "Type: file, executable script Location: <code>/usr/local/administration/check_and_install_promises</code> on the cfengine hub. <code>check_and_install_promises</code> is a shell script which runs <code>m4</code> to process the <code>/var/lib/cfengine/masterfiles/promises.m4</code> to create <code>promises.cf</code> from component <code>*.inc</code> in the same directory. Once created, the script runs <code>cf-promises</code> to validate the new <co...")
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 3: Line 3:
Location: <code>[[/usr/local/administration]]/check_and_install_promises</code> on the [[cfengine hub]].
Location: <code>[[/usr/local/administration]]/check_and_install_promises</code> on the [[cfengine hub]].


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


Once created, the script runs <code>[[cf-promises]]</code> to validate the new <code>promises.cf</code>. Once passed, the file is copied to <code>[[/var/lib/cfengine/inputs]]/</code> from whence it is distributed to all the [[cfengine]] client hosts as part of their regular <code>[[cf-agent]]</code> update runs.
Once created, the script runs <code>[[cf-promises]]</code> to validate the new <code>promises.cf</code>. Once validated, the file is copied to <code>[[/var/lib/cfengine3/inputs]]/</code> from whence it is distributed to all the [[cfengine]] client hosts as part of their regular <code>[[cf-agent]]</code> update runs.
 
<code>check_and_install_promises</code> must be run manually on the cfengine hub after any changes are made to the <code>promises.cf</code> components.

Latest revision as of 10:33, 5 September 2023

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.