Pārlūkot izejas kodu

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

pull/531/head
jeanluc pirms 2 gadiem
vecāks
revīzija
467164efae
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  1. +2
    -2
      salt/minion.sls

+ 2
- 2
salt/minion.sls Parādīt failu

@@ -24,7 +24,7 @@ download-salt-minion:
- group: wheel
- mode: '0644'
- 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:
- macpackage: salt-minion
- retry: {{ salt_settings.retry_options | json }}
@@ -58,7 +58,7 @@ salt-minion:
{# macpackage.installed is weird with version_check, detects diff but incomplete install #}
- force: True {# workaround #}
- 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' %}
- require_in:
- service: salt-minion

Notiek ielāde…
Atcelt
Saglabāt