Adding debian best practices
[cfengine-masterfiles.git] / inputs / promises.cf
blob2b4a4cd581469d4588c00158b4d9f2a64ec59a94
1 ####################################################
2 #                                                  #
3 # promises.cf - Main Cfeinge 3 configuration file  #
4 #                                                  #
5 ####################################################
7 body common control {
9      any::
11         bundlesequence => { @(g.bundlesequence) };
13     backbone::
14         domain => "lan0";
16     any::
18         inputs => {
19             "update.cf",
20             "library.cf",
21             "cf-execd.cf",
22             "cf-serverd.cf",
23             "cf-report.cf",
24             "cleanup.cf",
25             "domain.cf"
26         };
28     output_prefix => "cf3>";
31 # global vars
32 bundle common g {
34 classes:
36     "backbone" or => {
37         classify("test1.lan0")
38     };
40     "squeeze" or => {
41         classify("test1.lan0")
42     };
44     "policy_servers" or => {
45         classify("$(g.policyhost)")
46     };
48 vars:
50     "workdir"           string => "/var/lib/cfengine3";
51     "masterfiles"       string => "$(workdir)/masterfiles";
52     "inputfiles"        string => "$(workdir)/inputs";
53     "policyhost"        string => "cfengine.lan0";
55     backbone::
56         "backbone_seq" slist => {
57             "domain"
58         };
60     debian::
61         "debian_seq" slist => {
62             "dbp"
63         };
65     any::
66         "site_seq" slist => {
67             "@(g.backbone_seq)",
68             "@(g.debian_seq)",
69         }, policy => "ifdefined";
70         "bundlesequence"    slist => { "update", "executor", "server", @(g.site_seq), "cleanup" };
73 body runagent control {
74     hosts => { "127.0.0.1", "10.0.0.0/24" };