[cubicweb/monitor] use circus in roles
authorArthur Lutz <arthur.lutz@logilab.fr>
Thu, 28 Apr 2016 11:11:37 +0200
changeset 79 a8680682057c
parent 78 bc9fc4cffa1e
child 80 a0deb32142d3
[cubicweb/monitor] use circus in roles
cubicweb/monitor.sls
--- a/cubicweb/monitor.sls	Fri Mar 11 14:35:51 2016 +0100
+++ b/cubicweb/monitor.sls	Thu Apr 28 11:11:37 2016 +0200
@@ -13,7 +13,8 @@
     file.symlink:
         - target: /usr/share/munin/plugins/cubicweb_stats
 
-/usr/lib/nagios/plugins/check_cubicweb:
+{% set suffix = 'circus' in pillar.get('role') and '_circus' or '' %}
+/usr/lib/nagios/plugins/check_cubicweb{{ suffix }}:
     file.managed:
         - source: salt://shinken/scripts/check_cubicweb
         - mode: 0755