summaryrefslogtreecommitdiff
path: root/services/os/centos.cf
blob: f6673e268277834a7f7a2b440db2201245199013 (plain)
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
bundle agent centos
{
    vars:
        centos::
            "packages" slist => {
                "bash-completion",
                "bind-utils",
                "bridge-utils",
                "bzip2",
                "deltarpm",
                "dstat",
                "epel-release",
                "htop",
                "iptstate",
                "lsof",
                "ncdu",
                "net-tools",
                "rsync",
                "socat",
                "tar",
                "telnet",
                "tmux",
                "tree",
                "vim-enhanced",
                "wget",
                "yum-utils",
            };
    files:
        centos::
            "/etc/yum.conf"
                edit_defaults => std_defs,
                perms => system_owned("444"),
                edit_line => regex_replace(".*installonly_limit=(?!2).*", "installonly_limit=2"),
                classes => if_repaired("yum_conf_file_repaired");
    methods:
        centos::
            "centos"  usebundle => install_package("$(this.bundle)", "$(centos.packages)");
    reports:
        any::
            "$(this.bundle): /etc/yum.conf repaired" ifvarclass => "yum_conf_file_repaired";
}