.\"Copyright 2018 Northern.tech AS .\" .\"This file is part of CFEngine 3 - written and maintained by Northern.tech AS. .\" .\"This program is free software; you can redistribute it and/or modify it .\"under the terms of the GNU General Public License as published by the .\"Free Software Foundation; version 3. .\" .\"This program is distributed in the hope that it will be useful, .\"but WITHOUT ANY WARRANTY; without even the implied warranty of .\"MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\"GNU General Public License for more details. .\" .\"You should have received a copy of the GNU General Public License .\"along with this program; if not, write to the Free Software .\"Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA .\" .\"To the extent this program is licensed as part of the Enterprise .\"versions of CFEngine, the applicable Commercial Open Source License .\"(COSL) may apply to this file if you as a licensee so wish it. See .\"included file COSL.txt. .TH CF-PROMISES 8 "CFEngine" "System Administration" .SH NAME cf-promises \- validate and analyze CFEngine policy code .SH SYNOPSIS .B cf-promises .RI [ OPTION ]... .RI [ FILE ] .SH DESCRIPTION cf-promises is a tool for checking CFEngine policy code. It operates by first parsing policy code checing for syntax errors. Second, it validates the integrity of policy consisting of multiple files. Third, it checks for semantic errors, e.g. specific attribute set rules. Finally, cf-promises attempts to expose errors by partially evaluating the policy, resolving as many variable and classes promise statements as possible. At no point does cf-promises make any changes to the system. .SH OPTIONS .IP "--workdir, -w value" Override the work directory for testing (same as setting CFENGINE_TEST_OVERRIDE_WORKDIR) .IP "--eval-functions, - value" Evaluate functions during syntax checking (may catch more run-time errors). Possible values: 'yes', 'no'. Default is 'yes' .IP "--show-classes, - value" Show discovered classes, including those defined in common bundles in policy. Optionally can take a regular expression. .IP "--show-vars, - value" Show discovered variables, including those defined without dependency to user-defined classes in policy. Optionally can take a regular expression. .IP "--help, -h" Print the help message .IP "--bundlesequence, -b value" Use the specified bundlesequence for verification .IP "--debug, -d" Enable debugging output .IP "--verbose, -v" Output verbose information about the behaviour of the agent .IP "--log-level, -g value" Specify how detailed logs should be. Possible values: 'error', 'warning', 'notice', 'info', 'verbose', 'debug' .IP "--dry-run, -n" All talk and no action mode - make no changes, only inform of promises not kept .IP "--version, -V" Output the version of the software .IP "--file, -f value" Specify an alternative input file than the default. This option is overridden by FILE if supplied as argument. .IP "--define, -D value" Define a list of comma separated classes to be defined at the start of execution .IP "--negate, -N value" Define a list of comma separated classes to be undefined at the start of execution .IP "--inform, -I" Print basic information about changes made to the system, i.e. promises repaired .IP "--diagnostic, -x" Activate internal diagnostics (developers only) .IP "--policy-output-format, -p value" Output the parsed policy. Possible values: 'none', 'cf', 'json' (this file only), 'cf-full', 'json-full' (all parsed promises). Default is 'none'. (experimental) .IP "--syntax-description, -s value" Output a document describing the available syntax elements of CFEngine. Possible values: 'none', 'json'. Default is 'none'. .IP "--full-check, -c" Ensure full policy integrity checks .IP "--warn, -W value" Pass comma-separated |all to enable non-default warnings, or error=|all .IP "--color, -C value" Enable colorized output. Possible values: 'always', 'auto', 'never'. If option is used, the default value is 'auto' .IP "--tag-release, -T value" Tag a directory with promises.cf with cf_promises_validated and cf_promises_release_id .IP "--timestamp, -l" Log timestamps on each line of log output .IP "--log-modules, - value" Enable even more detailed debug logging for specific areas of the implementation. Use together with '-d'. Use --log-modules=help for a list of available modules .SH CFENGINE CFEngine provides automated configuration management of large-scale computer systems. A system administrator describes the desired state of a system using CFEngine policy code. The program \fBcf-agent\fR reads policy code and attempts to bring the current system state to the desired state described. Policy code is downloaded by \fBcf-agent\fR from a \fBcf-serverd\fR daemon. The daemon \fBcf-execd\fR is responsible for running \fBcf-agent\fR periodically. .br Documentation for CFEngine is available at http://cfengine.com/documentation/. .SH PROMISE THEORY CFEngine is built on principles from promise theory, proposed by Mark Burgess in 2004. Promise theory is a model of voluntary cooperation between individual, autonomous actors or agents who publish their intentions to one another in the form of promises. A promise is a declaration of intent whose purpose is to increase the recipient's certainty about a claim of past, present or future behaviour. For a promise to increase certainty, the recipient needs to trust the promiser, but trust can also be built on the verification that previous promises have been kept, thus trust plays a symbiotic relationship with promises. .br For an introduction to promise theory, please see http://arxiv.org/abs/0810.3294/ .SH AVAILABILITY cf-promises is part of CFEngine. .br Binary packages may be downloaded from http://cfengine.com/downloads/. .br The source code is available at http://github.com/cfengine/ .SH BUGS Please see the public bug-tracker at http://bug.cfengine.com/. .br GitHub pull-requests may be submitted to http://github.com/cfengine/core/. .SH "SEE ALSO" .BR cf-promises (8), .BR cf-agent (8), .BR cf-serverd (8), .BR cf-execd (8), .BR cf-monitord (8), .BR cf-runagent (8), .BR cf-key (8) .SH AUTHOR Mark Burgess and CFEngine AS