Skip to content

Commit

Permalink
fix(gentoo): use retry_options to avoid spurious service failures
Browse files Browse the repository at this point in the history
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
  • Loading branch information
myii committed Apr 3, 2022
1 parent e9cb3d2 commit d00c069
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion salt/api.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion salt/master.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion salt/minion.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion salt/standalone.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion salt/syndic.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit d00c069

Please sign in to comment.