ebfeba2c4f
* Semi-automated using https://github.com/myii/ssf-formula/pull/31 * Includes: - Update TOFS - Use `bin/kitchen` - Use `dist: bionic` in Travis - Add `yamllint` and apply rules - Use `pillars_from_files` throughout - Replace EOL images in Kitchen & Travis - Add `develop` images in Kitchen & Travis * Fix (or ignore) errors shown below: ```bash salt-formula$ yamllint -s . ./pillar.example 1:1 warning missing document start "---" (document-start) 5:23 warning truthy value should be one of [false, true] (truthy) 8:25 warning truthy value should be one of [false, true] (truthy) 11:25 warning truthy value should be one of [false, true] (truthy) 19:21 warning truthy value should be one of [false, true] (truthy) 40:89 error line too long (108 > 88 characters) (line-length) 41:89 error line too long (112 > 88 characters) (line-length) 43:89 error line too long (112 > 88 characters) (line-length) 45:89 error line too long (110 > 88 characters) (line-length) 47:89 error line too long (89 > 88 characters) (line-length) 74:27 warning truthy value should be one of [false, true] (truthy) 82:9 error wrong indentation: expected 10 but found 8 (indentation) 101:14 warning truthy value should be one of [false, true] (truthy) 102:20 warning truthy value should be one of [false, true] (truthy) 103:89 error line too long (119 > 88 characters) (line-length) 121:7 warning comment not indented like content (comments-indentation) 122:24 error syntax error: found character '%' that cannot start any token 310:89 error line too long (102 > 88 characters) (line-length) 330:89 error line too long (113 > 88 characters) (line-length) 433:1 error too many blank lines (1 > 0) (empty-lines) ./salt/osmap.yaml 4:2 error syntax error: found character '%' that cannot start any token 6:89 error line too long (93 > 88 characters) (line-length) 22:89 error line too long (137 > 88 characters) (line-length) 23:89 error line too long (134 > 88 characters) (line-length) 33:89 error line too long (149 > 88 characters) (line-length) 34:89 error line too long (146 > 88 characters) (line-length) ./salt/osfamilymap.yaml 4:2 error syntax error: found character '%' that cannot start any token 6:89 error line too long (94 > 88 characters) (line-length) 24:89 error line too long (149 > 88 characters) (line-length) 25:89 error line too long (146 > 88 characters) (line-length) 39:89 error line too long (105 > 88 characters) (line-length) 40:89 error line too long (127 > 88 characters) (line-length) 56:89 error line too long (101 > 88 characters) (line-length) ./salt/ospyvermap.yaml 4:1 warning missing document start "---" (document-start) ./salt/defaults.yaml 3:1 warning missing document start "---" (document-start) 7:21 warning truthy value should be one of [false, true] (truthy) 8:12 warning truthy value should be one of [false, true] (truthy) 9:23 warning truthy value should be one of [false, true] (truthy) 10:19 warning truthy value should be one of [false, true] (truthy) 14:25 warning truthy value should be one of [false, true] (truthy) 15:25 warning truthy value should be one of [false, true] (truthy) 16:27 warning truthy value should be one of [false, true] (truthy) 17:27 warning truthy value should be one of [false, true] (truthy) 39:28 warning truthy value should be one of [false, true] (truthy) 41:28 warning truthy value should be one of [false, true] (truthy) 45:24 warning truthy value should be one of [false, true] (truthy) 49:30 warning truthy value should be one of [false, true] (truthy) 54:28 warning truthy value should be one of [false, true] (truthy) 63:25 warning truthy value should be one of [false, true] (truthy) 68:15 warning truthy value should be one of [false, true] (truthy) ```
141 lines
3.9 KiB
YAML
141 lines
3.9 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_repr = 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 osfamily_lower = salt['grains.get']('os_family')|lower %}
|
|
{% set osmajorrelease = salt['grains.get']('osmajorrelease', osrelease)|string %}
|
|
{% set oscodename = salt['grains.get']('oscodename') %}
|
|
|
|
#from template-formula
|
|
{%- if grains.os == 'MacOS' %}
|
|
{%- set macos_rootuser = salt['cmd.run']("stat -f '%Su' /dev/console") %}
|
|
{%- set macos_rootgroup = salt['cmd.run']("stat -f '%Sg' /dev/console") %}
|
|
{%- endif %}
|
|
|
|
Debian:
|
|
pkgrepo: 'deb http://repo.saltstack.com/{{ py_ver_repr }}/{{ osfamily_lower }}/{{ osmajorrelease }}/amd64/{{ salt_release }} {{ oscodename }} main'
|
|
key_url: 'https://repo.saltstack.com/{{ py_ver_repr }}/{{ osfamily_lower }}/{{ osmajorrelease }}/amd64/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
|
|
libgit2: libgit2-22
|
|
pyinotify: python-pyinotify
|
|
gitfs:
|
|
pygit2:
|
|
install_from_source: true
|
|
version: 0.22.1
|
|
git:
|
|
require_state: false
|
|
install_from_package: git
|
|
libgit2:
|
|
install_from_source: false
|
|
|
|
RedHat:
|
|
pkgrepo: 'https://repo.saltstack.com/{{ py_ver_repr }}/redhat/$releasever/$basearch/{{ salt_release }}'
|
|
key_url: 'https://repo.saltstack.com/{{ py_ver_repr }}/redhat/$releasever/$basearch/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
|
|
pygit2: python-pygit2
|
|
python_git: GitPython
|
|
gitfs:
|
|
gitpython:
|
|
install_from_source: false
|
|
pygit2:
|
|
install_from_source: false
|
|
git:
|
|
require_state: false
|
|
install_from_package: git
|
|
master:
|
|
gitfs_provider: pygit2
|
|
|
|
Suse:
|
|
pkgrepo: 'http://repo.saltstack.com/opensuse/openSUSE_Leap_{{ osrelease }}/'
|
|
key_url: 'http://repo.saltstack.com/opensuse/openSUSE_Leap_{{ osrelease }}/repodata/repomd.xml.key'
|
|
pygit2: python-pygit2
|
|
pyinotify: python-pyinotify
|
|
gitfs:
|
|
pygit2:
|
|
install_from_source: false
|
|
git:
|
|
require_state: false
|
|
install_from_package: git
|
|
master:
|
|
gitfs_provider: pygit2
|
|
|
|
Gentoo:
|
|
salt_master: app-admin/salt
|
|
salt_minion: app-admin/salt
|
|
salt_syndic: app-admin/salt
|
|
salt_api: app-admin/salt
|
|
salt_cloud: app-admin/salt
|
|
pyinotify: dev-python/pyinotify
|
|
|
|
Arch:
|
|
salt_master: salt
|
|
salt_minion: salt
|
|
salt_syndic: salt
|
|
salt_cloud: salt
|
|
salt_api: salt
|
|
salt_ssh: salt
|
|
python_git: python2-gitpython
|
|
pygit2: python2-pygit2
|
|
libgit2: libgit2
|
|
pyinotify: python2-pyinotify
|
|
|
|
Alpine:
|
|
salt-master: salt-master
|
|
salt_minion: salt-minion
|
|
salt_syndic: salt-syndic
|
|
salt_cloud: salt-cloud
|
|
salt_api: salt-api
|
|
salt_ssh: salt-ssh
|
|
pygit2: py2-pygit2
|
|
libgit2: libgit2
|
|
|
|
FreeBSD:
|
|
rootgroup: wheel
|
|
salt_master: py27-salt
|
|
salt_minion: py27-salt
|
|
salt_syndic: py27-salt
|
|
salt_cloud: py27-salt
|
|
salt_api: py27-salt
|
|
salt_ssh: py27-salt
|
|
python_git: py27-GitPython
|
|
pygit2: py27-pygit2
|
|
config_path: /usr/local/etc/salt
|
|
minion_service: salt_minion
|
|
master_service: salt_master
|
|
api_service: salt_api
|
|
syndic_service: salt_syndic
|
|
|
|
OpenBSD:
|
|
salt_master: salt
|
|
salt_minion: salt
|
|
salt_syndic: salt
|
|
salt_cloud: salt
|
|
salt_api: salt
|
|
salt_ssh: salt
|
|
config_path: /etc/salt
|
|
minion_service: salt_minion
|
|
master_service: salt_master
|
|
python_git: py-GitPython
|
|
|
|
Windows:
|
|
salt_minion: salt-minion{{ py_ver_repr }}
|
|
config_path: 'C:\salt\conf'
|
|
minion_service: salt-minion
|
|
|
|
MacOS:
|
|
salt_minion: salt
|
|
salt_minion_pkg_source: ''
|
|
salt_minion_pkg_hash: ''
|
|
config_path: /private/etc/salt
|
|
minion_service: com.saltstack.salt.minion
|
|
## from template-formula
|
|
rootuser: {{ macos_rootuser | d('') }}
|
|
rootgroup: {{ macos_rootgroup | d('') }}
|