summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJulien Dessaux2018-02-20 15:36:10 +0100
committerJulien Dessaux2018-02-20 15:41:03 +0100
commite81ffe2ca9c8e3b379ae3420804ef3593d2e839e (patch)
treed8502f90aaf171fe727378938ef1a624622f6856
parentUpdated hosts file, added nas (diff)
downloadmasterfiles-e81ffe2ca9c8e3b379ae3420804ef3593d2e839e.tar.gz
masterfiles-e81ffe2ca9c8e3b379ae3420804ef3593d2e839e.tar.bz2
masterfiles-e81ffe2ca9c8e3b379ae3420804ef3593d2e839e.zip
Added centos support
-rw-r--r--services/common.cf5
-rw-r--r--services/os.cf3
-rw-r--r--services/os/centos.cf31
3 files changed, 39 insertions, 0 deletions
diff --git a/services/common.cf b/services/common.cf
index 1c6cba4..ebc3a5f 100644
--- a/services/common.cf
+++ b/services/common.cf
@@ -31,6 +31,11 @@ bundle agent install_package(caller, package)
vars:
"normalised_name" string => canonify("$(package)");
packages:
+ centos::
+ "$(package)"
+ policy => "present",
+ package_module => yum,
+ classes => if_repaired("$(caller)_common_package_$(normalised_name)_add_repaired");
debian|ubuntu::
"$(package)"
policy => "present",
diff --git a/services/os.cf b/services/os.cf
index 25eb203..6d7ad6d 100644
--- a/services/os.cf
+++ b/services/os.cf
@@ -1,6 +1,7 @@
body file control
{
inputs => {
+ "services/os/centos.cf",
"services/os/debian.cf",
"services/os/freebsd.cf",
"services/os/ubuntu.cf",
@@ -10,6 +11,8 @@ body file control
bundle agent os
{
methods:
+ centos::
+ "centos" usebundle => centos;
debian::
"debian" usebundle => debian;
freebsd::
diff --git a/services/os/centos.cf b/services/os/centos.cf
new file mode 100644
index 0000000..989fb46
--- /dev/null
+++ b/services/os/centos.cf
@@ -0,0 +1,31 @@
+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",
+ };
+ methods:
+ centos::
+ "centos" usebundle => install_package("$(this.bundle)", "$(centos.packages)");
+}