# append to the history file, don't overwrite it
shopt -s histappend
-{%- if debian_release != 'stretch' %}
-
# coloring grep:
-export GREP_OPTIONS='--color=auto'
+alias grep='grep --color=auto'
export GREP_COLOR='1;32'
-{%- endif %}
# hold these special chars when piping to less
export LESS="--RAW-CONTROL-CHARS"
-deb http://repo.saltstack.com/apt/debian/8/amd64/latest {{ debian_release }} main
+deb http://repo.saltstack.com/apt/debian/{{ osmajorrelease }}/amd64/latest {{ debian_release }} main
{%- from "debian/apt/map.jinja" import debian_release with context -%}
{%- from "debian/apt/map.jinja" import osrelease with context -%}
+{%- from "debian/apt/map.jinja" import osmajorrelease with context -%}
{%- from "debian/apt/map.jinja" import debian_mirror with context -%}
{%- from "debian/apt/map.jinja" import loc_country with context -%}
{%- from "debian/apt/map.jinja" import loc_provider with context -%}
- defaults:
debian_release: {{ debian_release }}
debian_mirror: {{ debian_mirror }}
+ osmajorrelease: {{ osmajorrelease }}
{%- endif %}
{% set debian_release = salt['grains.get']('oscodename') %}
{% set osrelease = salt['grains.get']('osrelease') %}
+{% set osmajorrelease = salt['grains.get']('osmajorrelease') %}
{% set loc_country = salt['pillar.get']('location:country', 'de') %}
{% set loc_provider = salt['pillar.get']('location:provider', 'profitbricks') %}