Browse Source

icinga2: Install pkg libmonitoring-plugin-perl on Stretch and later.

Signed-off-by: Maximilian Wilhelm <max@rfc2324.org>
Maximilian Wilhelm 6 years ago
parent
commit
6173e7f1a9
1 changed files with 4 additions and 0 deletions
  1. 4 0
      icinga2/init.sls

+ 4 - 0
icinga2/init.sls

@@ -22,7 +22,11 @@ monitoring-plugin-pkgs:
       - monitoring-plugins
       - nagios-plugins-contrib
       - libyaml-syck-perl
+{% if grains['oscodename'] == 'jessie' %}
       - libnagios-plugin-perl
+{% else %}
+      - libmonitoring-plugin-perl
+{% endif %}
       - lsof
     - watch_in:
       - service: icinga2