2
0
salt-formula/salt/osmap.yaml

52 lines
1.8 KiB
YAML
Raw Normal View History

2019-01-25 21:35:16 +01:00
# -*- coding: utf-8 -*-
# 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') %}
2019-01-25 21:35:16 +01:00
{% set osrelease = salt['grains.get']('osrelease') %}
{% set salt_release = salt['pillar.get']('salt:release', 'latest') %}
{% if salt_release.split('.')|length >= 3 %}
{% set salt_release = 'archive/' ~ salt_release %}
{% endif %}
{% set os_lower = salt['grains.get']('os')|lower %}
{% set osmajorrelease = salt['grains.get']('osmajorrelease', osrelease)|string %}
{% set oscodename = salt['grains.get']('oscodename') %}
Fedora:
pygit2: python2-pygit2
Ubuntu:
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'
2019-01-25 21:35:16 +01:00
pygit2: python-pygit2
gitfs:
pygit2:
install_from_source: False
git:
require_state: False
2019-01-26 11:10:44 +01:00
install_from_package: Null
2019-01-25 21:35:16 +01:00
Raspbian:
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'
2019-01-25 21:35:16 +01:00
SmartOS:
salt_master: salt
salt_minion: salt
salt_syndic: salt
salt_cloud: salt
salt_api: salt
salt_ssh: salt
minion_service: 'salt:minion'
master_service: 'salt:master'
api_service: 'salt:api'
python_dulwich: 'py27-dulwich'
gitfs:
dulwich:
install_from_source: False
config_path: /opt/local/etc/salt
master:
2019-01-25 22:05:21 +01:00
gitfs_provider: dulwich