Repository navigation
Expand file tree
/
Copy pathpromises.cf
More file actions
105 lines (84 loc) · 3.56 KB
/
Copy pathpromises.cf
File metadata and controls
105 lines (84 loc) · 3.56 KB
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
###############################################################################
#
# promises.cf - Basic Policy for Community
#
###############################################################################
body common control
{
bundlesequence => {
# Common bundles first for best practice
"def",
# Design Center
"cfsketch_run",
# Agent bundles from here
"main",
@(master_config.bundles)
};
inputs => {
# Global common bundles
"def.cf",
# Control body for all agents
"controls/cf_agent.cf",
"controls/cf_execd.cf",
"controls/cf_monitord.cf",
"controls/cf_runagent.cf",
"controls/cf_serverd.cf",
# COPBL/Custom libraries. Eventually this should use wildcards.
@(cfengine_stdlib.inputs),
# Design Center
# MARKER FOR CF-SKETCH INPUT INSERTION
"cf-sketch-runfile.cf",
# User services from here
"services/init_msg.cf",
"promises/master_config.cf",
@(master_config.inputs)
};
version => "Community Promises.cf 3.5.3";
}
bundle common cfengine_stdlib
{
vars:
cfengine_3_4::
"inputs" slist => { "libraries/cfengine_stdlib.cf" };
cfengine_3_5::
"inputs" slist => {
"lib/3.5/paths.cf",
"lib/3.5/common.cf",
"lib/3.5/commands.cf",
"lib/3.5/packages.cf",
"lib/3.5/files.cf",
"lib/3.5/services.cf",
"lib/3.5/processes.cf",
"lib/3.5/storage.cf",
"lib/3.5/databases.cf",
"lib/3.5/monitor.cf",
"lib/3.5/guest_environments.cf",
"lib/3.5/bundles.cf",
};
!(cfengine_3_4||cfengine_3_5)::
"inputs" slist => {
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/paths.cf",
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/common.cf",
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/commands.cf",
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/packages.cf",
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/files.cf",
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/services.cf",
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/processes.cf",
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/storage.cf",
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/databases.cf",
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/monitor.cf",
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/guest_environments.cf",
"lib/$(sys.cf_version_major).$(sys.cf_version_minor)/bundles.cf",
};
}
###############################################################################
bundle agent main
{
methods:
any::
"INIT MSG"
usebundle => init_msg,
comment => "Just a pre-defined policy bundled with the package",
handle => "main_methods_any_init_msg";
}
###############################################################################