<commit_before>{%- if grains['oscodename'] == 'wheezy' -%}
debian.wheezy-backports:
  pkgrepo.managed:
    - humanname: Debian Wheezy backports repository
    - name: deb http://mirrors.kernel.org/debian wheezy-backports main contrib
    - dist: wheezy-backports
    - file: /etc/apt/sources.list.d/wheezy-backports.list
{%- endif %}

{%- if grains['oscodename'] in ['wheezy', 'jessie'] %}
pkg-mozilla-archive-keyring:
  pkg.installed

debian.{{ grains['oscodename'] }}-mozilla:
  pkgrepo.managed:
    - humanname: Debian {{ grains['oscodename'] }} Mozilla repository
    - name: deb http://mozilla.debian.net/ {{ grains['oscodename'] }}-backports firefox-release
    - dist: {{ grains['oscodename'] }}-backports
    - file: /etc/apt/sources.list.d/{{ grains['oscodename'] }}-mozilla.list
    - require:
      - pkg: pkg-mozilla-archive-keyring
{%- endif %}

{% if salt['pillar.get']('debian:repos:jessie', true) -%}
debian.jessie:
  pkgrepo.managed:
    - humanname: Debian Jessie repository
    - name: deb http://mirrors.kernel.org/debian jessie main contrib
    - dist: jessie
    - file: /etc/apt/sources.list.d/jessie.list

/etc/apt/preferences.d/jessie.pref:
  file.managed:
    - source: salt://debian/files/apt_preferences.jessie.conf
    - user: root
    - group: root
    - mode: 644
{%- endif %}

{% if salt['pillar.get']('debian:repos:sid') -%}
debian.sid:<commit_msg>Only add the Jessie repo if the target OS is Debian<commit_after>{%- if grains['oscodename'] == 'wheezy' -%}
debian.wheezy-backports:
  pkgrepo.managed:
    - humanname: Debian Wheezy backports repository
    - name: deb http://mirrors.kernel.org/debian wheezy-backports main contrib
    - dist: wheezy-backports
    - file: /etc/apt/sources.list.d/wheezy-backports.list
{%- endif %}

{%- if grains['oscodename'] in ['wheezy', 'jessie'] %}
pkg-mozilla-archive-keyring:
  pkg.installed

debian.{{ grains['oscodename'] }}-mozilla:
  pkgrepo.managed:
    - humanname: Debian {{ grains['oscodename'] }} Mozilla repository
    - name: deb http://mozilla.debian.net/ {{ grains['oscodename'] }}-backports firefox-release
    - dist: {{ grains['oscodename'] }}-backports
    - file: /etc/apt/sources.list.d/{{ grains['oscodename'] }}-mozilla.list
    - require:
      - pkg: pkg-mozilla-archive-keyring
{%- endif %}

{% if grains['os'] == 'Debian' and salt['pillar.get']('debian:repos:jessie', true) -%}
debian.jessie:
  pkgrepo.managed:
    - humanname: Debian Jessie repository
    - name: deb http://mirrors.kernel.org/debian jessie main contrib
    - dist: jessie
    - file: /etc/apt/sources.list.d/jessie.list

/etc/apt/preferences.d/jessie.pref:
  file.managed:
    - source: salt://debian/files/apt_preferences.jessie.conf
    - user: root
    - group: root
    - mode: 644
{%- endif %}

{% if salt['pillar.get']('debian:repos:sid') -%}
debian.sid:
{'fraction_non_alphanumeric': 0.1746200070696359, 'fraction_numerical': 0.0021208907741251328, 'mean_word_length': 3.428794992175274, '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': '910077', 'n_tokens_mistral': 1113, 'n_tokens_neox': 1003, 'n_words': 188}