summaryrefslogtreecommitdiff
path: root/promises.cf
blob: 9a0eb5a13a3c69343f00c7cded200f9466375fa4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
body common control
{
    any::
        bundlesequence => {
            cfengine_controls,
            cfengine_stdlib,
            core_policies,
            @(core_policies.bundles),
            classify,
            g,
            @(classify.bundles),
            main,
        };
        inputs => {
            @(cfengine_controls.inputs),
            @(cfengine_stdlib.inputs),
            "cfengine/core_policies.cf",
            @(core_policies.inputs),
            "services/main.cf",
        };
}

bundle common cfengine_controls
{
    vars:
        any::
            "input[cf_agent]" string => "controls/cf_agent.cf";
            "input[cf_execd]" string => "controls/cf_execd.cf";
            "input[cf_monitord]" string => "controls/cf_monitord.cf";
            "input[cf_serverd]" string => "controls/cf_serverd.cf";
            "input[cf_runagent]" string => "controls/cf_runagent.cf";
            "inputs" slist => getvalues(input);
    reports:
        DEBUG|DEBUG_cfengine_controls::
            "DEBUG $(this.bundle)";
            "$(const.t)defining inputs='$(inputs)'";
}

bundle common cfengine_stdlib
{
    vars:
        any::
            "inputs" slist => { "$(sys.local_libdir)/stdlib.cf" };
    reports:
        DEBUG|DEBUG_cfengine_stdlib::
            "$(const.t): defining inputs='$(inputs)'";
}