{% from "metrics/map.jinja" import collectd with context %}

collectd:
  pkg:
    - installed
    - version: {{ collectd.revision }}
    - pkgs: 
      - collectd
      - collectd-core
    - watch_in: 
      - service: collectd
  service:
    - running
    - enable: True

collectd-utils:
  pkg:
    - installed


/etc/collectd/collectd.conf:
  file:
    - managed
    - source: salt://metrics/templates/collectd/collectd.conf
    - template: jinja
    - watch_in:
      - service: collectd

{% from "metrics/map.jinja" import collectd with context %}

collectd-core:
  pkg.installed:
    - version: {{ collectd.revision }}
    - watch_in:
      - service: collectd

collectd:
  pkg.installed:
    - version: {{ collectd.revision }}
    - watch_in:
      - service: collectd
  service:
    - running
    - enable: True

collectd-utils:
  pkg:
    - installed


/etc/collectd/collectd.conf:
  file:
    - managed
    - source: salt://metrics/templates/collectd/collectd.conf
    - template: jinja
    - watch_in:
      - service: collectd


Change to separate package defns - salt doesn't seem to handle combined
Change to separate package defns - salt doesn't seem to handle combined

ministryofjustice/metrics-formula,ministryofjustice/metrics-formula,ministryofjustice/metrics-formula,ministryofjustice/metrics-formula,ministryofjustice/metrics-formula