To get started with CFEngine, you can imagine the following template for entering examples. This part of the code is common to all the examples.
[%CFEngine_include_snippet(basic_example.cf, .* )%]
The general pattern of the syntax is like this (colors in html version: red, CFEngine word; blue, user-defined word):
bundle component name(parameters)
{
what_type:
where_when::
# Traditional comment
"promiser" -> { "promisee1", "promisee2" },
comment => "The intention ...",
handle => "unique_id_label",
attribute_1 => body_or_value1,
attribute_2 => body_or_value2;
}
[%CFEngine_include_snippet(hello_world.cf, .* )%]
[%CFEngine_include_snippet(array_example.cf, .* )%]