|
|
|
|
|
|
|
|
- macpackage: salt-minion |
|
|
- macpackage: salt-minion |
|
|
- retry: {{ salt_settings.retry_options | json }} |
|
|
- retry: {{ salt_settings.retry_options | json }} |
|
|
{%- elif "workaround https://github.com/saltstack/salt/issues/49348" %} |
|
|
{%- 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 }} |
|
|
|
|
|
|
|
|
{% if salt_settings.install_packages %} |
|
|
|
|
|
pkg.installed: |
|
|
|
|
|
- name: {{ salt_settings.salt_minion }} |
|
|
|
|
|
{%- if salt_settings.version is defined %} |
|
|
|
|
|
- version: {{ salt_settings.version }} |
|
|
|
|
|
{%- endif %} |
|
|
|
|
|
{% endif %} |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
salt-minion-macos: |
|
|
salt-minion-macos: |
|
|
|
|
|
|
|
|
{%- if grains.os == 'MacOS' and salt_settings.salt_minion_pkg_source %} |
|
|
{%- if grains.os == 'MacOS' and salt_settings.salt_minion_pkg_source %} |
|
|
- macpackage: salt-minion |
|
|
- macpackage: salt-minion |
|
|
{%- elif grains.os == 'MacOS' %} |
|
|
{%- elif grains.os == 'MacOS' %} |
|
|
- cmd: download-salt-minion |
|
|
|
|
|
|
|
|
- pkg: download-salt-minion |
|
|
{%- else %} |
|
|
{%- else %} |
|
|
- pkg: salt-minion |
|
|
- pkg: salt-minion |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
{%- if grains.os == 'MacOS' and salt_settings.salt_minion_pkg_source %} |
|
|
{%- if grains.os == 'MacOS' and salt_settings.salt_minion_pkg_source %} |
|
|
- macpackage: salt-minion |
|
|
- macpackage: salt-minion |
|
|
{%- elif grains.os == 'MacOS' %} |
|
|
{%- elif grains.os == 'MacOS' %} |
|
|
- cmd: download-salt-minion |
|
|
|
|
|
|
|
|
- pkg: download-salt-minion |
|
|
{%- else %} |
|
|
{%- else %} |
|
|
- pkg: salt-minion |
|
|
- pkg: salt-minion |
|
|
{%- endif %} |
|
|
{%- endif %} |