{% set secrets = pillar["slack-secrets"] %}

slack-irc:
  pkg.installed:
    - pkgs:
      - nodejs
      - npm

  user.present:
    - name: slack-irc
    - home: /srv/slack-irc/
    - createhome: True

  npm.installed:
    - pkgs:
      - slack-irc
    - user: slack-irc
    - require:
      - user: slack-irc

  file.managed:
    - name: /srv/slack-irc/config.json
    - source: salt://slack-irc/config/slack-irc.json.jinja
    - context:
        slack_token: {{ secrets['slack_token'] }}
        irc_password: {{ secrets['irc_password'] }}
    - template: jinja
    - user: slack-irc
    - mode: 640
    - show_diff: False
    - require:
      - user: slack-irc

{% set secrets = pillar["slack-secrets"] %}

slack-irc:
  pkg.installed:
    - pkgs:
      - nodejs
      - npm

  user.present:
    - name: slack-irc
    - home: /srv/slack-irc/
    - createhome: True

  npm.installed:
    - pkgs:
      - slack-irc

  file.managed:
    - name: /etc/slack-irc.json
    - source: salt://slack-irc/config/slack-irc.json.jinja
    - context:
        slack_token: {{ secrets['slack_token'] }}
        irc_password: {{ secrets['irc_password'] }}
    - template: jinja
    - user: slack-irc
    - mode: 640
    - show_diff: False
    - require:
      - user: slack-irc

Fix up the states some
Fix up the states some

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