Browse Source

fix(minion): do not reinstall every run on MacOS

pull/531/head
jeanluc 2 years ago
parent
commit
467164efae
No account linked to committer's email address
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      salt/minion.sls

+ 2
- 2
salt/minion.sls View File

- group: wheel - group: wheel
- mode: '0644' - mode: '0644'
- unless: - unless:
- test -n "{{ salt_settings.version }}" && '/opt/salt/bin/salt-minion --version=.*{{ salt_settings.version }}.*'
- test -n "{{ salt_settings.version }}" && /opt/salt/bin/salt-minion --version | grep -E '{{ salt_settings.version }}$'
- require_in: - require_in:
- macpackage: salt-minion - macpackage: salt-minion
- retry: {{ salt_settings.retry_options | json }} - retry: {{ salt_settings.retry_options | json }}
{# macpackage.installed is weird with version_check, detects diff but incomplete install #} {# macpackage.installed is weird with version_check, detects diff but incomplete install #}
- force: True {# workaround #} - force: True {# workaround #}
- unless: - unless:
- test -n "{{ salt_settings.version }}" && '/opt/salt/bin/salt-minion --version=.*{{ salt_settings.version }}.*'
- test -n "{{ salt_settings.version }}" && /opt/salt/bin/salt-minion --version | grep -E '{{ salt_settings.version }}$'
{% if salt_settings.minion_service_details.state != 'ignore' %} {% if salt_settings.minion_service_details.state != 'ignore' %}
- require_in: - require_in:
- service: salt-minion - service: salt-minion

Loading…
Cancel
Save