forked from cfengine/masterfiles
-
Notifications
You must be signed in to change notification settings - Fork 0
/
def.cf
85 lines (62 loc) · 2.94 KB
/
def.cf
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
###############################################################################
#
# bundle common def
# - common/global variables and classes here
#
###############################################################################
bundle common def
{
vars:
any::
# Begin change # Your domain name, for use in access control
"domain" string => "example.com",
comment => "Define a global domain for all hosts",
handle => "common_def_vars_domain";
# List here the IP masks that we grant access to on the server
"acl" slist => {
# Assume /16 LAN clients to start with
"$(sys.policy_hub)/16",
# "2001:700:700:3.*",
# "217.77.34.18",
# "217.77.34.19",
},
comment => "Define an acl for the machines to be granted accesses",
handle => "common_def_vars_acl";
# End change #
"dir_masterfiles" string => translatepath("$(sys.masterdir)"),
comment => "Define masterfiles path",
handle => "common_def_vars_dir_masterfiles";
"dir_reports" string => translatepath("$(sys.workdir)/reports"),
comment => "Define reports path",
handle => "common_def_vars_dir_reports";
"dir_software" string => translatepath("$(sys.workdir)/master_software_updates"),
comment => "Define software path",
handle => "common_def_vars_dir_software";
"dir_bin" string => translatepath("$(sys.bindir)"),
comment => "Define binary path",
handle => "common_def_vars_dir_bin";
"dir_modules" string => translatepath("$(sys.workdir)/modules"),
comment => "Define modules path",
handle => "common_def_vars_dir_modules";
# CFEngine own log files
"cfe_log_files" slist => {
"$(sys.workdir)/cf3.$(sys.host).runlog",
"$(sys.workdir)/cf_notkept.log",
"$(sys.workdir)/cf_repair.log",
"$(sys.workdir)/httpd/logs/access_log",# Mission Portal
"$(sys.workdir)/httpd/logs/error_log", # Mission Portal
"$(sys.workdir)/promise_summary.log",
"$(sys.workdir)/state/cf_value.log",
};
"cfe_log_dirs" slist => {
"$(sys.workdir)/outputs"
};
classes:
### Enable special features policies. Set to "any" to enable.
# Internal CFEngine log files rotation
"cfengine_internal_rotate_logs" expression => "!any";
# Transfer policies and binaries with encryption
"cfengine_internal_encrypt_transfers" expression => "!any";
# Purge policies that don't exist on the server side.
"cfengine_internal_purge_policies" expression => "!any";
}