소스 검색

Merge branch 'master' into version

tags/v0.58.2
Niels Abspoel 5 년 전
부모
커밋
a399ab2ec6
No account linked to committer's email address
16개의 변경된 파일92개의 추가작업 그리고 23개의 파일을 삭제
  1. +2
    -2
      .travis.yml
  2. +1
    -1
      AUTHORS.md
  3. +7
    -0
      CHANGELOG.md
  4. +1
    -1
      FORMULA
  5. +1
    -1
      docs/AUTHORS.rst
  6. +9
    -0
      docs/CHANGELOG.rst
  7. +2
    -0
      salt/defaults.yaml
  8. +6
    -0
      salt/formulas.sls
  9. +30
    -17
      salt/minion.sls
  10. +11
    -1
      salt/osfamilymap.yaml
  11. +1
    -0
      salt/pkgrepo/arch
  12. +1
    -0
      salt/pkgrepo/freebsd
  13. +1
    -0
      salt/pkgrepo/macos
  14. +7
    -0
      salt/pkgrepo/nop/clean.sls
  15. +5
    -0
      salt/pkgrepo/nop/init.sls
  16. +7
    -0
      salt/pkgrepo/nop/install.sls

+ 2
- 2
.travis.yml 파일 보기

matrix: matrix:
- INSTANCE: v2019-2-py3-debian-9 - INSTANCE: v2019-2-py3-debian-9
- INSTANCE: v2019-2-py3-ubuntu-1804 - INSTANCE: v2019-2-py3-ubuntu-1804
- INSTANCE: v2019-2-py2-centos-7
# - INSTANCE: v2019-2-py2-centos-7
- INSTANCE: v2019-2-py2-fedora-29 - INSTANCE: v2019-2-py2-fedora-29


- INSTANCE: v2018-3-py2-debian-8 - INSTANCE: v2018-3-py2-debian-8
- INSTANCE: v2018-3-py2-ubuntu-1604 - INSTANCE: v2018-3-py2-ubuntu-1604
- INSTANCE: v2018-3-py2-bootstrap-centos-6 - INSTANCE: v2018-3-py2-bootstrap-centos-6
- INSTANCE: v2018-3-py2-forced-version-fedora-28 - INSTANCE: v2018-3-py2-forced-version-fedora-28
- INSTANCE: v2018-3-py2-opensuse-423
# - INSTANCE: v2018-3-py2-opensuse-423


- INSTANCE: v2017-7-py2-debian-8 - INSTANCE: v2017-7-py2-debian-8
- INSTANCE: v2017-7-py2-ubuntu-1604 - INSTANCE: v2017-7-py2-ubuntu-1604

+ 1
- 1
AUTHORS.md 파일 보기



--- ---


Auto-generated by a [forked version](https://github.com/myii/maintainer) of [gaocegege/maintainer](https://github.com/gaocegege/maintainer) on 2019-06-13.
Auto-generated by a [forked version](https://github.com/myii/maintainer) of [gaocegege/maintainer](https://github.com/gaocegege/maintainer) on 2019-08-01.

+ 7
- 0
CHANGELOG.md 파일 보기

# Changelog # Changelog


## [0.58.1](https://github.com/saltstack-formulas/salt-formula/compare/v0.58.0...v0.58.1) (2019-08-01)


### Bug Fixes

* **travis:** disable two failing platforms until they can be fixed ([5fcadcd](https://github.com/saltstack-formulas/salt-formula/commit/5fcadcd))

# [0.58.0](https://github.com/saltstack-formulas/salt-formula/compare/v0.57.1...v0.58.0) (2019-06-13) # [0.58.0](https://github.com/saltstack-formulas/salt-formula/compare/v0.57.1...v0.58.0) (2019-06-13)





+ 1
- 1
FORMULA 파일 보기

name: salt name: salt
os: Debian, Redhat, Suse, Arch, Gentoo, FreeBSD, Windows os: Debian, Redhat, Suse, Arch, Gentoo, FreeBSD, Windows
os_family: Debian, Redhat, Suse, Arch, Gentoo, FreeBSD, Windows os_family: Debian, Redhat, Suse, Arch, Gentoo, FreeBSD, Windows
version: 0.58.0
version: 0.58.1
release: 1 release: 1
minimum_version: 2015.8 minimum_version: 2015.8
summary: Formula for install Saltstack summary: Formula for install Saltstack

+ 1
- 1
docs/AUTHORS.rst 파일 보기



---- ----


Auto-generated by a `forked version <https://github.com/myii/maintainer>`_ of `gaocegege/maintainer <https://github.com/gaocegege/maintainer>`_ on 2019-06-13.
Auto-generated by a `forked version <https://github.com/myii/maintainer>`_ of `gaocegege/maintainer <https://github.com/gaocegege/maintainer>`_ on 2019-08-01.

+ 9
- 0
docs/CHANGELOG.rst 파일 보기

Changelog Changelog
========= =========


`0.58.1 <https://github.com/saltstack-formulas/salt-formula/compare/v0.58.0...v0.58.1>`_ (2019-08-01)
---------------------------------------------------------------------------------------------------------

Bug Fixes
^^^^^^^^^


* **travis:** disable two failing platforms until they can be fixed (\ `5fcadcd <https://github.com/saltstack-formulas/salt-formula/commit/5fcadcd>`_\ )

`0.58.0 <https://github.com/saltstack-formulas/salt-formula/compare/v0.57.1...v0.58.0>`_ (2019-06-13) `0.58.0 <https://github.com/saltstack-formulas/salt-formula/compare/v0.57.1...v0.58.0>`_ (2019-06-13)
--------------------------------------------------------------------------------------------------------- ---------------------------------------------------------------------------------------------------------



+ 2
- 0
salt/defaults.yaml 파일 보기

# vim: ft=yaml # vim: ft=yaml
salt: salt:
version: '' version: ''
rootuser: root
rootgroup: root
install_packages: True install_packages: True
use_pip: False use_pip: False
clean_config_d_dir: True clean_config_d_dir: True

+ 6
- 0
salt/formulas.sls 파일 보기

{%- from "salt/formulas.jinja" import formulas_git_opt with context %} {%- from "salt/formulas.jinja" import formulas_git_opt with context %}
{%- from "salt/formulas.jinja" import formulas_opts_for_git_latest with context %} {%- from "salt/formulas.jinja" import formulas_opts_for_git_latest with context %}


## from template-formula
{%- set tplroot = tpldir.split('/')[0] %}
{%- from tplroot ~ "/map.jinja" import salt_settings with context %}

# Loop over all formulas listed in pillar data # Loop over all formulas listed in pillar data
{%- for env, entries in salt['pillar.get']('salt_formulas:list', {}).items() %} {%- for env, entries in salt['pillar.get']('salt_formulas:list', {}).items() %}
{%- for entry in entries %} {%- for entry in entries %}
{%- for key, value in salt['pillar.get']('salt_formulas:basedir_opts', {%- for key, value in salt['pillar.get']('salt_formulas:basedir_opts',
{'makedirs': True}).items() %} {'makedirs': True}).items() %}
- {{ key }}: {{ value }} - {{ key }}: {{ value }}
- user: {{ salt_settings.rootuser }}
- group: {{ salt_settings.rootgroup }}
{%- endfor %} {%- endfor %}
{%- endif %} {%- endif %}



+ 30
- 17
salt/minion.sls 파일 보기

{%- from tplroot ~ "/map.jinja" import salt_settings with context %} {%- from tplroot ~ "/map.jinja" import salt_settings with context %}
{%- from tplroot ~ "/libtofs.jinja" import files_switch with context %} {%- from tplroot ~ "/libtofs.jinja" import files_switch with context %}


{% if salt_settings.install_packages and grains.os == 'MacOS' and salt_settings.salt_minion_pkg_source != '' and salt_settings.version != '' %}
{# only download IF we know where to get the pkg from and if we know what version to check the current install (if installed) against #}
{# e.g. don't download unless it appears as though we're about to try and upgrade the minion #}
{% if salt_settings.install_packages and grains.os == 'MacOS' %}
download-salt-minion: download-salt-minion:
{% if salt_settings.salt_minion_pkg_source %}
{# only download IF we know where to get the pkg from and what version to check the current install (if installed) against #}
{# e.g. don't download unless it appears as though we're about to try and upgrade the minion #}
file.managed: file.managed:
- name: '/tmp/salt.pkg' - name: '/tmp/salt.pkg'
- source: {{ salt_settings.salt_minion_pkg_source }} - source: {{ salt_settings.salt_minion_pkg_source }}
{% if salt_settings.salt_minion_pkg_hash != '' %}
{%- if salt_settings.salt_minion_pkg_hash %}
- source_hash: {{ salt_settings.salt_minion_pkg_hash }} - source_hash: {{ salt_settings.salt_minion_pkg_hash }}
{% else %} {% else %}
- skip_verify: True - skip_verify: True
- group: wheel - group: wheel
- mode: 0644 - mode: 0644
- unless: - unless:
- '/opt/salt/bin/salt-minion --version | grep {{ salt_settings.version }}'
- test -n "{{ salt_settings.version }}" && '/opt/salt/bin/salt-minion --version=.*{{ salt_settings.version }}.*'
- require_in: - require_in:
- macpackage: salt-minion - macpackage: salt-minion
{%- elif "workaround https://github.com/saltstack/salt/issues/49348" %}
cmd.run:
- name: /usr/local/bin/brew install {{ salt_settings.salt_minion }}
- onlyif: test -x /usr/local/bin/brew
- runas: {{ salt_settings.rootuser }}
{%- endif %}
{% endif %} {% endif %}


salt-minion: salt-minion:
{% if salt_settings.install_packages %} {% if salt_settings.install_packages %}
{%- if grains.os == 'MacOS' and salt_settings.salt_minion_pkg_source != '' and salt_settings.version != '' %}
{%- if grains.os == 'MacOS' and salt_settings.salt_minion_pkg_source %}
macpackage.installed: macpackage.installed:
- name: '/tmp/salt.pkg' - name: '/tmp/salt.pkg'
- target: / - target: /
{# macpackage.installed behaves weirdly with version_check; version_check detects difference but fails to actually complete install. #} {# macpackage.installed behaves weirdly with version_check; version_check detects difference but fails to actually complete install. #}
{# use force == True as workaround #} {# use force == True as workaround #}
- force: True - force: True
- version_check: /opt/salt/bin/salt-minion --version=.*{{ salt_settings.version }}.*
- unless:
- test -n "{{ salt_settings.version }}" && '/opt/salt/bin/salt-minion --version=.*{{ salt_settings.version }}.*'
- require_in: - require_in:
- service: salt-minion - service: salt-minion
{%- else %}
- onchanges_in:
- cmd: remove-macpackage-salt
{%- elif grains.os != 'MacOS' and "workaround https://github.com/saltstack/salt/issues/49348" %}
pkg.installed: pkg.installed:
- name: {{ salt_settings.salt_minion }} - name: {{ salt_settings.salt_minion }}
{%- if salt_settings.version is defined %}
{%- if salt_settings.version %}
- version: {{ salt_settings.version }} - version: {{ salt_settings.version }}
{%- endif %} {%- endif %}
- require_in: - require_in:
{%- endif %} {%- endif %}
- onchanges: - onchanges:
{%- if salt_settings.install_packages %} {%- if salt_settings.install_packages %}
{%- if grains.os == 'MacOS' %}
{%- if grains.os == 'MacOS' and salt_settings.salt_minion_pkg_source %}
- macpackage: salt-minion - macpackage: salt-minion
{%- elif grains.os == 'MacOS' %}
- cmd: download-salt-minion
{%- else %} {%- else %}
- pkg: salt-minion - pkg: salt-minion
{%- endif %} {%- endif %}
- pkg: at - pkg: at
- onchanges: - onchanges:
{%- if salt_settings.install_packages %} {%- if salt_settings.install_packages %}
{%- if grains.os == 'MacOS' %}
{%- if grains.os == 'MacOS' and salt_settings.salt_minion_pkg_source %}
- macpackage: salt-minion - macpackage: salt-minion
{%- else %}
{%- elif grains.os == 'MacOS' %}
- cmd: download-salt-minion
{%- else %}
- pkg: salt-minion - pkg: salt-minion
{%- endif %}
{%- endif %}
{%- endif %} {%- endif %}
- file: salt-minion - file: salt-minion
- file: remove-old-minion-conf-file - file: remove-old-minion-conf-file


{% if grains.os == 'MacOS' %} {% if grains.os == 'MacOS' %}
remove-macpackage-salt: remove-macpackage-salt:
cmd.run:
- name: 'rm -f /tmp/salt.pkg'
- onchanges:
- macpackage: salt-minion
file.absent:
- name: /tmp/salt.pkg
- force: True
{% endif %} {% endif %}

+ 11
- 1
salt/osfamilymap.yaml 파일 보기

{% set osmajorrelease = salt['grains.get']('osmajorrelease', osrelease)|string %} {% set osmajorrelease = salt['grains.get']('osmajorrelease', osrelease)|string %}
{% set oscodename = salt['grains.get']('oscodename') %} {% 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: Debian:
pkgrepo: 'deb http://repo.saltstack.com/{{ py_ver_repr }}/{{ osfamily_lower }}/{{ osmajorrelease }}/amd64/{{ salt_release }} {{ oscodename }} main' 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' key_url: 'https://repo.saltstack.com/{{ py_ver_repr }}/{{ osfamily_lower }}/{{ osmajorrelease }}/amd64/{{ salt_release }}/SALTSTACK-GPG-KEY.pub'
libgit2: libgit2 libgit2: libgit2


FreeBSD: FreeBSD:
rootgroup: wheel
salt_master: py27-salt salt_master: py27-salt
salt_minion: py27-salt salt_minion: py27-salt
salt_syndic: py27-salt salt_syndic: py27-salt
minion_service: salt-minion minion_service: salt-minion


MacOS: MacOS:
salt_minion: com.saltstack.salt
salt_minion: salt
salt_minion_pkg_source: '' salt_minion_pkg_source: ''
salt_minion_pkg_hash: '' salt_minion_pkg_hash: ''
config_path: /private/etc/salt config_path: /private/etc/salt
minion_service: com.saltstack.salt.minion minion_service: com.saltstack.salt.minion
## from template-formula
rootuser: {{ macos_rootuser | d('') }}
rootgroup: {{ macos_rootgroup | d('') }}

+ 1
- 0
salt/pkgrepo/arch 파일 보기

nop/

+ 1
- 0
salt/pkgrepo/freebsd 파일 보기

nop/

+ 1
- 0
salt/pkgrepo/macos 파일 보기

nop/

+ 7
- 0
salt/pkgrepo/nop/clean.sls 파일 보기

# -*- coding: utf-8 -*-
# vim: ft=sls

salt-pkgrepo-clean-saltstack-norepo-{{ grains['os_family']|lower }}:
test.show_notification:
- text: |
No official repository for {{ grains['os_family'] }}

+ 5
- 0
salt/pkgrepo/nop/init.sls 파일 보기

# -*- coding: utf-8 -*-
# vim: ft=sls

include:
- .install

+ 7
- 0
salt/pkgrepo/nop/install.sls 파일 보기

# -*- coding: utf-8 -*-
# vim: ft=sls

salt-pkgrepo-install-saltstack-norepo-{{ grains['os_family']|lower }}:
test.show_notification:
- text: |
No official repository for {{ grains['os_family'] }}

Loading…
취소
저장