Procházet zdrojové kódy

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

Use the `retry_options` on Gentoo, similar to how its already being used
across the state files for FreeBSD, since we're getting failures such as
this one:

* https://gitlab.com/myii/salt-formula/-/jobs/2285180374
tags/v1.10.2
Imran Iqbal před 2 roky
rodič
revize
d00c069e25
Žádný účet není propojen s e-mailovou adresou tvůrce revize
5 změnil soubory, kde provedl 5 přidání a 5 odebrání
  1. +1
    -1
      salt/api.sls
  2. +1
    -1
      salt/master.sls
  3. +1
    -1
      salt/minion.sls
  4. +1
    -1
      salt/standalone.sls
  5. +1
    -1
      salt/syndic.sls

+ 1
- 1
salt/api.sls Zobrazit soubor

@@ -15,7 +15,7 @@ salt-api:
service.{{ salt_settings.api_service_details.state }}:
- enable: {{ salt_settings.api_service_details.enabled }}
- name: {{ salt_settings.api_service }}
{%- if grains.os_family == 'FreeBSD' %}
{%- if grains.os_family in ['FreeBSD', 'Gentoo'] %}
- retry: {{ salt_settings.retry_options | json }}
{%- endif %}
- require:

+ 1
- 1
salt/master.sls Zobrazit soubor

@@ -54,7 +54,7 @@ salt-master:
service.{{ salt_settings.master_service_details.state }}:
- enable: {{ salt_settings.master_service_details.enabled }}
- name: {{ salt_settings.master_service }}
{%- if grains.os_family == 'FreeBSD' %}
{%- if grains.os_family in ['FreeBSD', 'Gentoo'] %}
- retry: {{ salt_settings.retry_options | json }}
{%- endif %}
- watch:

+ 1
- 1
salt/minion.sls Zobrazit soubor

@@ -97,7 +97,7 @@ salt-minion:
service.{{ salt_settings.minion_service_details.state }}:
- enable: {{ salt_settings.minion_service_details.enabled }}
- name: {{ salt_settings.minion_service }}
{%- if grains.os_family == 'FreeBSD' %}
{%- if grains.os_family in ['FreeBSD', 'Gentoo'] %}
- retry: {{ salt_settings.retry_options | json }}
{%- endif %}
- watch:

+ 1
- 1
salt/standalone.sls Zobrazit soubor

@@ -25,7 +25,7 @@ salt-minion-standalone:
- enable: False
{%- endif %}
- name: {{ salt_settings.minion_service }}
{%- if grains.os_family == 'FreeBSD' %}
{%- if grains.os_family in ['FreeBSD', 'Gentoo'] %}
- retry: {{ salt_settings.retry_options | json }}
{%- endif %}
- require:

+ 1
- 1
salt/syndic.sls Zobrazit soubor

@@ -18,7 +18,7 @@ salt-syndic:
service.running:
- enable: True
- name: {{ salt_settings.syndic_service }}
{%- if grains.os_family == 'FreeBSD' %}
{%- if grains.os_family in ['FreeBSD', 'Gentoo'] %}
- retry: {{ salt_settings.retry_options | json }}
{%- endif %}
- require:

Načítá se…
Zrušit
Uložit