Merge branch 'master' into macos

This commit is contained in:
N
2020-07-15 11:42:03 +01:00
committed by GitHub
26 changed files with 679 additions and 181 deletions
+5 -6
View File
@@ -143,18 +143,17 @@ salt-minion:
- file: remove-old-minion-conf-file
{%- else %}
{% if grains.os != 'MacOS' %}
{# MacOS has 'at' command; but there's no package to install #}
{% if grains.os_family not in ['MacOS', 'FreeBSD'] %}
{# MacOS and FreeBSD have the 'at' command; but there's no package to install #}
at:
pkg.installed: []
{% endif %}
pkg.installed:
- require_in: restart-salt-minion
{% endif %}
restart-salt-minion:
cmd.run:
- name: echo salt-call --local service.restart {{ salt_settings.minion_service }} | at now + 1 minute
- order: last
- require:
- pkg: at
- onchanges:
{%- if salt_settings.install_packages %}
{%- if grains.os == 'MacOS' and salt_settings.salt_minion_pkg_source %}
+1 -1
View File
@@ -127,7 +127,7 @@ OpenBSD:
python_git: py-GitPython
Windows:
salt_minion: salt-minion{{ py_ver_repr or '-py3' }}
salt_minion: salt-minion{{ '-' ~ py_ver_repr if py_ver_repr else '' }}
config_path: 'C:\salt\conf'
minion_service: salt-minion