summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
authorJulien Dessaux2017-09-20 17:07:38 +0200
committerJulien Dessaux2017-09-21 16:21:41 +0200
commit53110ddcf8ed4a1f76d10adce40c67eddd829bed (patch)
treecba2879cda9f6564c2bb2a8705b69b189d35ae29 /services
parentAdded defautl fpm timezone (diff)
downloadmasterfiles-53110ddcf8ed4a1f76d10adce40c67eddd829bed.tar.gz
masterfiles-53110ddcf8ed4a1f76d10adce40c67eddd829bed.tar.bz2
masterfiles-53110ddcf8ed4a1f76d10adce40c67eddd829bed.zip
Fixed reporting of common install_package bundle
Diffstat (limited to 'services')
-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";
}