Wrapper script to run CFEngine bundles
Shell
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README.md
run_bundle.sh

README.md

cfengine-run-bundle

A little script to run a single CFEngine bundle with arguments for rapid prototyping, inspired by cf-cmd.

(If your bundle doesn't take any arguments, you can just use cf-agent --bundlesequence <bundle>.)

Usage

  • Customise the CFENGINE_MASTERFILES_DIR and LIBRARY_FILES variables to match your setup.

  • Run with:

    $ sudo ./run_bundle.sh [options] <bundle to run> [arg 1] [arg 2] ...
    

    Options:

    • -v: run cf-agent with --verbose

    • -s: pass arguments as an slist rather than individually

    • -f bundle.cf: use bundle.cf for source of bundle

    • -D classes: define 'classes' (comma-separated) at the start of the cf-agent run

      If -f not specified, look for the bundle in CFENGINE_MASTERFILES_DIR

  • run_bundle.sh will create a wrapper policy to run the bundle, and run it with cf-agent.