diamond-depends:
  pkg.installed:
    - pkgs:
      - python-configobj
      - python-psutil


diamond:
  pkg.installed:
    - sources:
      - python-diamond: salt://monitoring/client/packages/python-diamond_3.4.421_all.deb
    - require:
      - pkg: diamond-depends

  group.present:
    - system: True

  user.present:
    - shell: /bin/false
    - system: True
    - gid_from_name: True
    - require:
      - group: diamond


/etc/diamond/diamond.conf:
  file.managed:
    - source: salt://monitoring/client/configs/diamond.conf.jinja
    - template: jinja
    - user: root
    - group: root
    - mode: 644
    - require:
      - pkg: diamond



diamond-depends:
  pkg.installed:
    - pkgs:
      - python-configobj
      - python-psutil


diamond:
  pkg.installed:
    - sources:
      - python-diamond: salt://monitoring/client/packages/python-diamond_3.4.421_all.deb
    - require:
      - pkg: diamond-depends

  group.present:
    - system: True

  user.present:
    - shell: /bin/false
    - system: True
    - gid_from_name: True
    - require:
      - group: diamond

  service.running:
    - enable: True
    - watch:
      - file: /etc/diamond/diamond.conf
    - require:
      - pkg: diamond
      - user: diamond


/etc/diamond/diamond.conf:
  file.managed:
    - source: salt://monitoring/client/configs/diamond.conf.jinja
    - template: jinja
    - user: root
    - group: root
    - mode: 644
    - require:
      - pkg: diamond

Set the diamond client to running
Set the diamond client to running

dstufft/psf-salt,zware/psf-salt,zooba/psf-salt,python/psf-salt,caktus/psf-salt,caktus/psf-salt,dstufft/psf-salt,python/psf-salt,zooba/psf-salt,dstufft/psf-salt,zware/psf-salt,zware/psf-salt,python/psf-salt,caktus/psf-salt,python/psf-salt,zware/psf-salt,zooba/psf-salt