2
0

fix(service): service salt-master and salt-minion to restart last

When running a high-state on the salt-master to deploy itself, the run fails
with an Authentication error occurred because the master restarts half way though.
This commit is contained in:
RemiChristiaan 2020-07-27 14:23:21 +02:00
parent 76e820c36f
commit d71cf0c4f9
2 changed files with 2 additions and 0 deletions

View File

@ -61,6 +61,7 @@ salt-master:
- file: salt-master - file: salt-master
{%- endif %} {%- endif %}
- file: remove-old-master-conf-file - file: remove-old-master-conf-file
- order: last
{% endif %} {% endif %}
{% if salt_settings.master_remove_config %} {% if salt_settings.master_remove_config %}
remove-default-master-conf-file: remove-default-master-conf-file:

View File

@ -107,6 +107,7 @@ salt-minion:
- name: {{ salt_settings.minion_service }} - name: {{ salt_settings.minion_service }}
- watch: - watch:
- file: remove-old-minion-conf-file - file: remove-old-minion-conf-file
- order: last
{% endif %} {% endif %}
{%- if not salt_settings.restart_via_at %} {%- if not salt_settings.restart_via_at %}
cmd.run: cmd.run: