summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--services/common.cf8
1 files changed, 5 insertions, 3 deletions
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";
}