mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-12-24 20:16:10 +01:00
a932a8cc84
Don't add key_url as it is deprecated and not needed when pkgrepo_keyring is set. This has been supported since stretch so make it the default. Also use py3 repo by default for Debian family as it is now the only option. Additionally, Raspbian has been updated to use signed-by by default.
87 lines
3.3 KiB
YAML
87 lines
3.3 KiB
YAML
# -*- coding: utf-8 -*-
|
|
# vim: ft=yaml
|
|
---
|
|
|
|
{%- set py_ver_repr = salt['pillar.get']('salt:py_ver', '') %}
|
|
|
|
{%- 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 %}
|
|
{%- set salt_repo = salt['pillar.get']('salt:repo', 'https://repo.saltproject.io') %}
|
|
|
|
Fedora:
|
|
pygit2: python2-pygit2
|
|
|
|
Amazon:
|
|
pkgrepo_name: saltstack-amzn-repo
|
|
pkgrepo_humanname: SaltStack repo for Amazon Linux 2
|
|
pkgrepo: '{{ salt_repo }}/{{ py_ver_repr or 'yum' }}/amazon/2/$basearch/{{ salt_release }}'
|
|
key_url: '{{ salt_repo }}/{{ py_ver_repr or 'yum' }}/amazon/2/$basearch/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
|
|
|
|
Ubuntu:
|
|
pkgrepo: 'deb [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=amd64] {{ salt_repo }}/{{ py_ver_repr or 'apt' }}/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }} {{ oscodename }} main'
|
|
pkgrepo_keyring: '{{ salt_repo }}/{{ py_ver_repr or 'apt' }}/{{ os_lower }}/{{ osrelease }}/amd64/{{ salt_release }}/salt-archive-keyring.gpg'
|
|
pkgrepo_keyring_hash: sha256=ea38e0cdbd8dc53e1af154a8d711a2a321a69f81188062dc5cde9d54df2b8c47
|
|
key_url: '{{ salt_repo }}/{{ py_ver_repr or 'apt' }}/{{ 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 [signed-by=/usr/share/keyrings/salt-archive-keyring.gpg arch=armhf] {{ salt_repo }}/{{ py_ver_repr or 'py3' }}/{{ os_family_lower }}/{{ osmajorrelease }}/armhf/{{ salt_release }} {{ oscodename }} main'
|
|
pkgrepo_keyring: '{{ salt_repo }}/{{ py_ver_repr or 'py3' }}/{{ os_family_lower }}/{{ osmajorrelease }}/armhf/{{ salt_release }}/salt-archive-keyring.gpg'
|
|
|
|
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: {{ py_ver_repr or 'py27' }}{{ '-dulwich' }}
|
|
gitfs:
|
|
dulwich:
|
|
install_from_source: false
|
|
config_path: /opt/local/etc/salt
|
|
master:
|
|
gitfs_provider: dulwich
|
|
|
|
MacOS:
|
|
minion_service: com.saltstack.salt.minion
|
|
master_service: com.saltstack.salt.master
|
|
salt_master_macos_plist_hash: 8435331b2d48ca8f0759f216e5b15ec9171a4216b1441328c732c6906728b7c9
|
|
salt_minion_macos_plist_hash: 26b33da12e0d8960ee96b488c8352002c22a377c19bf3df3f986a1e49eca8b20
|
|
|
|
FreeBSD:
|
|
salt_master: py38-salt
|
|
salt_minion: py38-salt
|
|
salt_syndic: py38-salt
|
|
salt_cloud: py38-salt
|
|
salt_api: py38-salt
|
|
salt_ssh: py38-salt
|
|
python_git: py38-gitpython
|
|
pygit2: py38-pygit2
|
|
python_dulwich: py38-dulwich
|
|
|
|
# If `osfingermap.yaml` is introduced in the future, perhaps better to move to there,
|
|
# since this is probably specific to `OpenBSD-6`
|
|
OpenBSD:
|
|
python_git: py3-GitPython
|
|
python_dulwich: py3-dulwich
|
|
|
|
Windows:
|
|
parallel: false # not supported on windows/cygwin
|