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
|
bundle common classify
{
vars:
any::
"bundles" slist => {
"common",
"check_mk",
"flavour",
"julien",
"sshd",
};
"inputs" slist => {
"services/check_mk.cf",
"services/common.cf",
"services/$(flavour).cf",
"services/julien.cf",
"services/sshd.cf",
};
debian::
"flavour" string => "debian";
freebsd::
"flavour" string => "freebsd";
ubuntu::
"flavour" string => "ubuntu";
classes:
any::
"containers" or => {
regline(".*/lxc/.*", "/proc/1/cgroup"),
regline(".*lxc", "/proc/1/environ"),
};
"awh" or => {
"hurricane",
};
"console_julien" or => {
"andromeda",
"collab_jde",
"console",
"hurricane",
"legend",
};
"mail_servers" or => { "legend" };
}
|