# This state will remove "/etc/salt/master" when you set this to true. | # This state will remove "/etc/salt/master" when you set this to true. | ||||
master_remove_config: True | master_remove_config: True | ||||
# Set this to 'py3' to install the Python 3 packages. | |||||
# If this is not set, the Python 2 packages will be installed by default. | |||||
py_ver: 'py3' | |||||
# Set this to False to not have the formula install packages (in the case you | # Set this to False to not have the formula install packages (in the case you | ||||
# install Salt via git/pip/etc.) | # install Salt via git/pip/etc.) | ||||
install_packages: True | install_packages: True |
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||
# vim: ft=yaml | # vim: ft=yaml | ||||
{% import_yaml "salt/ospyvermap.yaml" as ospyvermap %} | |||||
{% set ospyver = salt['grains.filter_by'](ospyvermap, grain='os_family') or {} %} | |||||
{% set py_ver_dir = salt['pillar.filter_by'](ospyver, pillar='salt:py_ver', default='py2') %} | |||||
{% set osrelease = salt['grains.get']('osrelease') %} | {% set osrelease = salt['grains.get']('osrelease') %} | ||||
{% set salt_release = salt['pillar.get']('salt:release', 'latest') %} | {% set salt_release = salt['pillar.get']('salt:release', 'latest') %} | ||||
{% if salt_release.split('.')|length >= 3 %} | {% if salt_release.split('.')|length >= 3 %} | ||||
{% set oscodename = salt['grains.get']('oscodename') %} | {% set oscodename = salt['grains.get']('oscodename') %} | ||||
Debian: | Debian: | ||||
pkgrepo: 'deb http://repo.saltstack.com/apt/{{ os_lower }}/{{ osmajorrelease }}/amd64/{{ salt_release }} {{ oscodename }} main' | |||||
key_url: 'https://repo.saltstack.com/apt/{{ os_lower }}/{{ osmajorrelease }}/amd64/{{ salt_release }}/SALTSTACK-GPG-KEY.pub' | |||||
pkgrepo: 'deb http://repo.saltstack.com/{{ py_ver_dir }}/{{ os_lower }}/{{ osmajorrelease }}/amd64/{{ salt_release }} {{ oscodename }} main' | |||||
key_url: 'https://repo.saltstack.com/{{ py_ver_dir }}/{{ os_lower }}/{{ osmajorrelease }}/amd64/{{ salt_release }}/SALTSTACK-GPG-KEY.pub' | |||||
libgit2: libgit2-22 | libgit2: libgit2-22 | ||||
pyinotify: python-pyinotify | pyinotify: python-pyinotify | ||||
gitfs: | gitfs: | ||||
install_from_source: False | install_from_source: False | ||||
RedHat: | RedHat: | ||||
pkgrepo: 'https://repo.saltstack.com/yum/redhat/$releasever/$basearch/{{ salt_release }}' | |||||
key_url: 'https://repo.saltstack.com/yum/redhat/$releasever/$basearch/{{ salt_release }}/SALTSTACK-GPG-KEY.pub' | |||||
pkgrepo: 'https://repo.saltstack.com/{{ py_ver_dir }}/redhat/$releasever/$basearch/{{ salt_release }}' | |||||
key_url: 'https://repo.saltstack.com/{{ py_ver_dir }}/redhat/$releasever/$basearch/{{ salt_release }}/SALTSTACK-GPG-KEY.pub' | |||||
pygit2: python-pygit2 | pygit2: python-pygit2 | ||||
python_git: GitPython | python_git: GitPython | ||||
gitfs: | gitfs: |
# -*- coding: utf-8 -*- | # -*- coding: utf-8 -*- | ||||
# vim: ft=yaml | # vim: ft=yaml | ||||
{% import_yaml "salt/ospyvermap.yaml" as ospyvermap %} | |||||
{% set ospyver = salt['grains.filter_by'](ospyvermap, grain='os_family') or {} %} | |||||
{% set py_ver_dir = salt['pillar.filter_by'](ospyver, pillar='salt:py_ver', default='py2') %} | |||||
{% set osrelease = salt['grains.get']('osrelease') %} | {% set osrelease = salt['grains.get']('osrelease') %} | ||||
{% set salt_release = salt['pillar.get']('salt:release', 'latest') %} | {% set salt_release = salt['pillar.get']('salt:release', 'latest') %} | ||||
{% if salt_release.split('.')|length >= 3 %} | {% if salt_release.split('.')|length >= 3 %} | ||||
pygit2: python2-pygit2 | pygit2: python2-pygit2 | ||||
Ubuntu: | Ubuntu: | ||||
pkgrepo: 'deb http://repo.saltstack.com/apt/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }} {{ oscodename }} main' | |||||
key_url: 'https://repo.saltstack.com/apt/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }}/SALTSTACK-GPG-KEY.pub' | |||||
pkgrepo: 'deb http://repo.saltstack.com/{{ py_ver_dir }}/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }} {{ oscodename }} main' | |||||
key_url: 'https://repo.saltstack.com/{{ py_ver_dir }}/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }}/SALTSTACK-GPG-KEY.pub' | |||||
pygit2: python-pygit2 | pygit2: python-pygit2 | ||||
gitfs: | gitfs: | ||||
pygit2: | pygit2: | ||||
install_from_package: Null | install_from_package: Null | ||||
Raspbian: | Raspbian: | ||||
pkgrepo: 'deb http://repo.saltstack.com/apt/{{ os_lower }}/{{ osmajorrelease }}/armhf/{{ salt_release }} {{ oscodename }} main' | |||||
key_url: 'https://repo.saltstack.com/apt/{{ os_lower }}/{{ osmajorrelease }}/armhf/{{ salt_release }}/SALTSTACK-GPG-KEY.pub' | |||||
pkgrepo: 'deb http://repo.saltstack.com/{{ py_ver_dir }}/{{ os_lower }}/{{ osmajorrelease }}/armhf/{{ salt_release }} {{ oscodename }} main' | |||||
key_url: 'https://repo.saltstack.com/{{ py_ver_dir }}/{{ os_lower }}/{{ osmajorrelease }}/armhf/{{ salt_release }}/SALTSTACK-GPG-KEY.pub' | |||||
SmartOS: | SmartOS: | ||||
salt_master: salt | salt_master: salt | ||||
config_path: /opt/local/etc/salt | config_path: /opt/local/etc/salt | ||||
master: | master: | ||||
gitfs_provider: dulwich | gitfs_provider: dulwich | ||||
# -*- coding: utf-8 -*- | |||||
# vim: ft=yaml | |||||
Debian: | |||||
py2: 'apt' | |||||
py3: 'py3' | |||||
RedHat: | |||||
py2: 'yum' | |||||
py3: 'py3' | |||||
Suse: {} | |||||
Gentoo: {} | |||||
Arch: {} | |||||
Alpine: {} | |||||
FreeBSD: {} | |||||
OpenBSD: {} | |||||
Windows: | |||||
py2: 'Py2' | |||||
py3: 'Py3' | |||||
MacOS: | |||||
py2: 'py2' | |||||
py3: 'py3' |