include:
  - .deps

sensu:
  pkg.installed


/etc/default/sensu:
  file.managed:
    - source: salt://sensu/files/default_sensu
    - require:
      - pkg: sensu


/etc/sensu:
  file.directory:
    - user: sensu
    - group: sensu
    - mode: 700
    - require:
      - pkg: sensu

/etc/sensu/conf.d/checks:
  file.directory:
    - require:
      - pkg: sensu


include:
  - .deps

sensu:
  pkg.installed


/etc/default/sensu:
  file.managed:
    - source: salt://sensu/files/default_sensu
    - require:
      - pkg: sensu


/etc/sensu:
  file.directory:
    - user: sensu
    - group: sensu
    - mode: 700
    - require:
      - pkg: sensu

/etc/sensu/conf.d/checks:
  file.directory:
    - clean: True
    - require:
      - pkg: sensu


Set clean:True on checks directory
Set clean:True on checks directory

ministryofjustice/sensu-formula,ministryofjustice/sensu-formula