mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2026-07-31 11:55:27 +02:00
Merge branch 'master' into macos
This commit is contained in:
+5
-6
@@ -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 %}
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user