---
{%- 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 %}