diff options
author | Julien Dessaux | 2017-08-25 17:21:05 +0200 |
---|---|---|
committer | Julien Dessaux | 2017-08-25 17:46:13 +0200 |
commit | 5239846956644f27d1619ce43b742034925d3ebc (patch) | |
tree | 59cc92daa324f03509b26de75587892b59b2f35c /services/os/freebsd.cf | |
parent | Added bareos-fd policy (diff) | |
download | masterfiles-5239846956644f27d1619ce43b742034925d3ebc.tar.gz masterfiles-5239846956644f27d1619ce43b742034925d3ebc.tar.bz2 masterfiles-5239846956644f27d1619ce43b742034925d3ebc.zip |
Changed policies organisation to use methods
Diffstat (limited to '')
-rw-r--r-- | services/os/freebsd.cf (renamed from services/freebsd.cf) | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/services/freebsd.cf b/services/os/freebsd.cf index c83e08f..7c930db 100644 --- a/services/freebsd.cf +++ b/services/os/freebsd.cf @@ -1,4 +1,4 @@ -bundle agent flavour +bundle agent freebsd { vars: freebsd:: @@ -6,17 +6,17 @@ bundle agent flavour "bash", "ncdu", }; - "rc_conf_lines" slist => { - @(bareos_fd.rc_conf_lines), - @(check_mk.rc_conf_lines), - }; +} + +bundle agent add_rc_conf_line(line) +{ files: freebsd:: "/etc/rc.conf" create => "true", edit_defaults => std_defs, perms => system_owned("444"), - edit_line => append_if_no_line("$(rc_conf_lines)"), + edit_line => append_if_no_line("$(line)"), classes => if_repaired("freebsd_rc_conf_file_repaired"); reports: any:: |