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

nodesource:
  pkgrepo.managed:
    - name: "deb [arch=amd64] https://deb.nodesource.com/iojs_3.x {{ grains['oscodename'] }} main"
    - file: /etc/apt/sources.list.d/nodesource.list
    - key_url: salt://slack-irc/config/APT-GPG-KEY-NODESOURCE
    - order: 2

slack-irc:
  pkg.installed:
    - pkgs:
      - iojs
    - require:
      - pkgrepo: nodesource

  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<commit_msg>Upgrade slack-irc to 3.6.0<commit_after>{% set secrets = pillar["slack-secrets"] %}

nodesource:
  pkgrepo.managed:
    - name: "deb [arch=amd64] https://deb.nodesource.com/iojs_3.x {{ grains['oscodename'] }} main"
    - file: /etc/apt/sources.list.d/nodesource.list
    - key_url: salt://slack-irc/config/APT-GPG-KEY-NODESOURCE
    - order: 2

slack-irc:
  pkg.installed:
    - pkgs:
      - iojs
    - require:
      - pkgrepo: nodesource

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

  npm.installed:
    - pkgs:
      - slack-irc@3.6.0

  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
{'fraction_non_alphanumeric': 0.15977337110481588, 'fraction_numerical': 0.0113314447592068, 'mean_word_length': 2.288640595903166, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4249518', 'n_tokens_mistral': 736, 'n_tokens_neox': 660, 'n_words': 108}