Преглед на файлове

fix(freebsd): use `retry_options` to avoid spurious service failures

Use the `retry_options` already being used for the Salt minion service,
since we're getting failures such as this one:

* https://github.com/myii/salt-formula/runs/2415072504

This is made worse by the fact that GitHub Actions cannot re-run a
single job (at the current time).
tags/v1.8.4
Imran Iqbal преди 3 години
родител
ревизия
698b7eae59
No account linked to committer's email address
променени са 4 файла, в които са добавени 12 реда и са изтрити 0 реда
  1. +3
    -0
      salt/api.sls
  2. +3
    -0
      salt/master.sls
  3. +3
    -0
      salt/standalone.sls
  4. +3
    -0
      salt/syndic.sls

+ 3
- 0
salt/api.sls Целия файл

service.{{ salt_settings.api_service_details.state }}: service.{{ salt_settings.api_service_details.state }}:
- enable: {{ salt_settings.api_service_details.enabled }} - enable: {{ salt_settings.api_service_details.enabled }}
- name: {{ salt_settings.api_service }} - name: {{ salt_settings.api_service }}
{%- if grains.os_family == 'FreeBSD' %}
- retry: {{ salt_settings.retry_options | json }}
{%- endif %}
- require: - require:
- service: {{ salt_settings.master_service }} - service: {{ salt_settings.master_service }}
- watch: - watch:

+ 3
- 0
salt/master.sls Целия файл

service.{{ salt_settings.master_service_details.state }}: service.{{ salt_settings.master_service_details.state }}:
- enable: {{ salt_settings.master_service_details.enabled }} - enable: {{ salt_settings.master_service_details.enabled }}
- name: {{ salt_settings.master_service }} - name: {{ salt_settings.master_service }}
{%- if grains.os_family == 'FreeBSD' %}
- retry: {{ salt_settings.retry_options | json }}
{%- endif %}
- watch: - watch:
{%- if grains.kernel|lower == 'darwin' %} {%- if grains.kernel|lower == 'darwin' %}
- file: salt-master-macos - file: salt-master-macos

+ 3
- 0
salt/standalone.sls Целия файл

- enable: False - enable: False
{%- endif %} {%- endif %}
- name: {{ salt_settings.minion_service }} - name: {{ salt_settings.minion_service }}
{%- if grains.os_family == 'FreeBSD' %}
- retry: {{ salt_settings.retry_options | json }}
{%- endif %}
- require: - require:
{% if salt_settings.install_packages %} {% if salt_settings.install_packages %}
- pkg: salt-minion-standalone - pkg: salt-minion-standalone

+ 3
- 0
salt/syndic.sls Целия файл

service.running: service.running:
- enable: True - enable: True
- name: {{ salt_settings.syndic_service }} - name: {{ salt_settings.syndic_service }}
{%- if grains.os_family == 'FreeBSD' %}
- retry: {{ salt_settings.retry_options | json }}
{%- endif %}
- require: - require:
- service: salt-master - service: salt-master
- watch: - watch:

Loading…
Отказ
Запис