mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-11-30 23:55:23 +01:00
60 lines
2.2 KiB
YAML
60 lines
2.2 KiB
YAML
# -*- 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') %}
|
|
|
|
{% 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') %}
|
|
{% set os_family_lower = salt['grains.get']('os_family')|lower %}
|
|
|
|
Fedora:
|
|
pygit2: python2-pygit2
|
|
|
|
Amazon:
|
|
pkgrepo_name: saltstack-amzn-repo
|
|
pkgrepo_humanname: SaltStack repo for Amazon Linux 2
|
|
pkgrepo: 'https://repo.saltstack.com/yum/amazon/2/$basearch/{{ salt_release }}'
|
|
key_url: 'https://repo.saltstack.com/yum/amazon/2/$basearch/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
|
|
|
|
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'
|
|
pygit2: python-pygit2
|
|
gitfs:
|
|
pygit2:
|
|
install_from_source: false
|
|
git:
|
|
require_state: false
|
|
install_from_package: Null
|
|
|
|
Raspbian:
|
|
pkgrepo: 'deb http://repo.saltstack.com/{{ py_ver_dir }}/{{ os_family_lower }}/{{ osmajorrelease }}/armhf/{{ salt_release }} {{ oscodename }} main'
|
|
key_url: 'https://repo.saltstack.com/{{ py_ver_dir }}/{{ os_family_lower }}/{{ osmajorrelease }}/armhf/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
|
|
|
|
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:
|
|
gitfs_provider: dulwich
|