diff options
author | Julien Dessaux | 2017-08-27 23:31:08 +0200 |
---|---|---|
committer | Julien Dessaux | 2017-08-27 23:44:05 +0200 |
commit | 5f4f78d55d832d31639119804e7ff9f69ecdda41 (patch) | |
tree | 8fccfce99393da540053a5cb35f0ba30e30ec9d5 /services/os/freebsd.cf | |
parent | Added nagios server policy (diff) | |
download | masterfiles-5f4f78d55d832d31639119804e7ff9f69ecdda41.tar.gz masterfiles-5f4f78d55d832d31639119804e7ff9f69ecdda41.tar.bz2 masterfiles-5f4f78d55d832d31639119804e7ff9f69ecdda41.zip |
Updated usebundle system to include caller information un report
Diffstat (limited to '')
-rw-r--r-- | services/os/freebsd.cf | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/services/os/freebsd.cf b/services/os/freebsd.cf index 7c930db..1029b25 100644 --- a/services/os/freebsd.cf +++ b/services/os/freebsd.cf @@ -6,9 +6,12 @@ bundle agent freebsd "bash", "ncdu", }; + methods: + freebsd:: + "freebsd" usebundle => install_package("$(this.bundle)", "$(freebsd.packages)"); } -bundle agent add_rc_conf_line(line) +bundle agent add_rc_conf_line(caller, line) { files: freebsd:: @@ -17,8 +20,8 @@ bundle agent add_rc_conf_line(line) edit_defaults => std_defs, perms => system_owned("444"), edit_line => append_if_no_line("$(line)"), - classes => if_repaired("freebsd_rc_conf_file_repaired"); + classes => if_repaired("$(caller)_freebsd_rc_conf_file_repaired"); reports: any:: - "$(this.bundle): /etc/rc.conf repaired" ifvarclass => "freebsd_rc_conf_file_repaired"; + "$(caller): /etc/rc.conf repaired" ifvarclass => "$(caller)_freebsd_rc_conf_file_repaired"; } |