<commit_before>{% set mopidy = pillar.get('mopidy', {}) %}

include:
    - .pillar_check


mopidy:
    pkgrepo.managed:
        - name: deb http://apt.mopidy.com/ jessie main contrib non-free
        - key_url: salt://mopidy/release-key.asc

    pkg.installed:
         - pkgs:
            - mopidy
            - mopidy-spotify

    file.managed:
        - name: /etc/mopidy/mopidy.conf
        - source: salt://mopidy/mopidy.conf
        - template: jinja
        - user: root
        - group: root
        - mode: 640
        - show_diff: False

    firewall.append:
        - chain: INPUT
        - proto: tcp
        - port: 6600<commit_msg>Allow mopidy user access to config<commit_after>{% set mopidy = pillar.get('mopidy', {}) %}

include:
    - .pillar_check


mopidy:
    pkgrepo.managed:
        - name: deb http://apt.mopidy.com/ jessie main contrib non-free
        - key_url: salt://mopidy/release-key.asc

    pkg.installed:
         - pkgs:
            - mopidy
            - mopidy-spotify

    file.managed:
        - name: /etc/mopidy/mopidy.conf
        - source: salt://mopidy/mopidy.conf
        - template: jinja
        - user: root
        - group: mopidy
        - mode: 640
        - show_diff: False
        - require:
            - pkg: mopidy

    firewall.append:
        - chain: INPUT
        - proto: tcp
        - port: 6600
{'fraction_non_alphanumeric': 0.11929307805596466, 'fraction_numerical': 0.010309278350515464, 'mean_word_length': 1.4754098360655739, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, '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': '312370', 'n_tokens_mistral': 496, 'n_tokens_neox': 458, 'n_words': 93}