paulbsd-salt/states/old/sensu/init.sls
2021-08-19 21:15:24 +02:00

12 lines
215 B
Plaintext

---
{%- from "sensu/map.jinja" import sensu with context %}
{%- if sensu.agent.enabled %}
include:
- .agent
{%- else %}
sensu-agent-service:
service.dead:
- name: sensu-agent
- enable: false
{% endif %}