Check and install promises: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 5: | Line 5: | ||
<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. | <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 validated, the file is copied to <code>[[/var/lib/ | 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 | <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.