[cubicweb/monitor] conditionnal script for conf on nagios
authorArthur Lutz <arthur.lutz@logilab.fr>
Thu, 06 Oct 2016 15:07:59 +0200
changeset 84 56452be19758
parent 83 9552aa7bc024
child 85 3c8fc1103e94
[cubicweb/monitor] conditionnal script for conf on nagios
cubicweb/monitor.sls
--- a/cubicweb/monitor.sls	Thu Jun 23 17:59:53 2016 +0200
+++ b/cubicweb/monitor.sls	Thu Oct 06 15:07:59 2016 +0200
@@ -26,8 +26,8 @@
         - watch:
           - service: nagios-nrpe-server
 
-/etc/nagios/nrpe.d/check_cubicweb.cfg:
+/etc/nagios/nrpe.d/check_cubicweb{{ suffix }}.cfg:
     file.managed:
-        - source: salt://shinken/nrpe.d/check_cubicweb.cfg
+        - source: salt://shinken/nrpe.d/check_cubicweb{{ suffix }}.cfg
         - watch:
           - service: nagios-nrpe-server