From 53110ddcf8ed4a1f76d10adce40c67eddd829bed Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Wed, 20 Sep 2017 17:07:38 +0200 Subject: Fixed reporting of common install_package bundle --- services/common.cf | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'services') diff --git a/services/common.cf b/services/common.cf index 8efeeaf..c63db35 100644 --- a/services/common.cf +++ b/services/common.cf @@ -28,18 +28,20 @@ bundle agent home_skel(caller, user) bundle agent install_package(caller, package) { + vars: + "normalised_name" string => canonify("$(package)"); packages: debian|ubuntu:: "$(package)" policy => "present", package_module => apt_get, - classes => if_repaired("$(caller)_common_package_$(package)_add_repaired"); + classes => if_repaired("$(caller)_common_package_$(normalised_name)_add_repaired"); freebsd:: "$(package)" policy => "present", package_module => pkg, - classes => if_repaired("$(caller)_common_package_$(package)_add_repaired"); + classes => if_repaired("$(caller)_common_package_$(normalised_name)_add_repaired"); reports: any:: - "$(caller): $(package) installed" ifvarclass => "$(caller)_common_package_$(package)_add_repaired"; + "$(caller): $(package) installed" ifvarclass => "$(caller)_common_package_$(normalised_name)_add_repaired"; } -- cgit v1.2.3