-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdate.cf
51 lines (43 loc) · 1.79 KB
/
update.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
###############################################################################
#
# update.cf - Basic Update Policy
#
###############################################################################
body common control
{
bundlesequence => {
"update_def",
"u_cfengine_enterprise",
@(u_cfengine_enterprise.def),
"cfe_internal_dc_workflow",
"cfe_internal_update_policy",
"cfe_internal_update_bins",
"cfe_internal_update_processes",
};
version => "update.cf $(update_def.current_version)";
inputs => {
"controls/$(sys.cf_version_major).$(sys.cf_version_minor)/update_def.cf",
"controls/$(sys.cf_version_major).$(sys.cf_version_minor)/update_def_inputs.cf",
"cfe_internal/update/update_bins.cf",
"cfe_internal/update/cfe_internal_dc_workflow.cf",
"cfe_internal/update/cfe_internal_local_git_remote.cf",
"cfe_internal/update/cfe_internal_update_from_repository.cf",
"cfe_internal/update/update_policy.cf",
"cfe_internal/update/update_processes.cf"
};
# Uncomment to connect to the hub using latest protocol.
#protocol_version => "latest";
}
#############################################################################
body agent control
{
ifelapsed => "1";
skipidentify => "true";
}
#############################################################################
body classes u_kept_successful_command
# @brief Set command to "kept" instead of "repaired" if it returns 0
{
kept_returncodes => { "0" };
failed_returncodes => { "1" };
}