-
Notifications
You must be signed in to change notification settings - Fork 67
Design Center Tools
In addition to providing a library of reuseable Policies and Sketches,
the CFEngine Design Center also provides a series of tools to manage,
test, and modify CFEngine Policies and Sketches. CFEngine Design
Center provides a number of tools you can use to manage and test
sketches. The main tool you will use to manage sketches from the
command line is cf-sketch
.
- cf-sketch - Sketches are managed (installed, configured, enabled and uninstalled) through this tool. Learn more about cf-sketch.
The cf-sketch
tool installs the sketches, configures their
parameters, and enables them for execution. All this happens through
a command-line interface so that you do not have to learn the CFEngine
policy language. You will still benefit from the power of CFEngine
for managing your infrastructure. Additionally, the code for all the
sketches is
publicly available on github,
and is an excellent resource for learning new techniques once you
decide to learn the policy language.
Using the cf-sketch
tool, you can easily set class expressions which
control where each sketch will be executed, and with which
parameters. You can activate each sketch more than once with different
parameters, so you can easily perform the same task under different
situations. Of course, you can also invoke sketches directly from your
policies by calling the appropriate bundles yourself, thus giving you
the ultimate flexibility in how sketches are integrated into your
environment.
To get started with cf-sketch
you'll want to read the following pages.
The cf-dc-api
tool talks the protocol described in
Introduction to Design Center API.
It's used by cf-sketch
in interactive and expert modes, and (in
CFEngine Enterprise) by the Design Center GUI.
A public repository for customizable CFEngine design patterns and code.