From 835c08c2b01e6b1bd287e5c3267efa9710da39e9 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Fri, 28 Jul 2017 14:52:08 +0000 Subject: Added freebsd support --- services/common.cf | 7 ++++++- services/debian.cf | 2 +- services/freebsd.cf | 10 ++++++++++ services/main.cf | 10 ++++++---- services/ubuntu.cf | 2 +- 5 files changed, 24 insertions(+), 7 deletions(-) create mode 100644 services/freebsd.cf (limited to 'services') diff --git a/services/common.cf b/services/common.cf index 0e866a0..729ba1a 100644 --- a/services/common.cf +++ b/services/common.cf @@ -3,7 +3,7 @@ bundle agent common vars: any:: "packages" slist => { - @(distrib.packages), + @(flavour.packages), @(specific.packages), }; files: @@ -19,6 +19,11 @@ bundle agent common policy => "present", package_module => apt_get, classes => if_repaired("common_packages_$(wanted)_add_repaired"); + freebsd:: + "$(packages)" + policy => "present", + package_module => pkg, + classes => if_repaired("common_packages_$(wanted)_add_repaired"); reports: any:: "$(this.bundle): /etc/hosts repaired" ifvarclass => "common_hosts_files_repaired"; diff --git a/services/debian.cf b/services/debian.cf index 8b250d3..30f09c6 100644 --- a/services/debian.cf +++ b/services/debian.cf @@ -1,4 +1,4 @@ -bundle common distrib +bundle common flavour { vars: debian:: diff --git a/services/freebsd.cf b/services/freebsd.cf new file mode 100644 index 0000000..8327832 --- /dev/null +++ b/services/freebsd.cf @@ -0,0 +1,10 @@ +bundle agent flavour +{ + vars: + freebsd:: + "packages" slist => { + "devel/libstatgrab", + "sysutils/muse", + "sysutils/ipmitool", + }; +} diff --git a/services/main.cf b/services/main.cf index 047e4b1..266cd86 100644 --- a/services/main.cf +++ b/services/main.cf @@ -4,16 +4,18 @@ bundle common classify any:: "bundles" slist => { "common", - "distrib", + "flavour", }; "inputs" slist => { "services/common.cf", - "services/$(distrib).cf", + "services/$(flavour).cf", }; debian:: - "distrib" string => "debian"; + "flavour" string => "debian"; + freebsd:: + "flavour" string => "freebsd"; ubuntu:: - "distrib" string => "ubuntu"; + "flavour" string => "ubuntu"; classes: any:: "containers" or => { diff --git a/services/ubuntu.cf b/services/ubuntu.cf index 1f69f82..919a5fe 100644 --- a/services/ubuntu.cf +++ b/services/ubuntu.cf @@ -1,4 +1,4 @@ -bundle common distrib +bundle common flavour { vars: ubuntu:: -- cgit v1.2.3