Skip to content

Commit

Permalink
fix(service): service salt-master and salt-minion to (re)start last.
Browse files Browse the repository at this point in the history
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. When I add the order: last to the respective service. states, the high-state runs through. I do not have the time unfortunately to test this through, but at first sight it seems not to lead to problems. Thereby I cannot come up with a reason to have the master or minion restart before all the other states have finished.
  • Loading branch information
VBH-Jenkins committed Jul 27, 2020
1 parent 76e820c commit 250e744
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions salt/master.sls
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ salt-master:
- file: salt-master
{%- endif %}
- file: remove-old-master-conf-file
- order: last
{% endif %}
{% if salt_settings.master_remove_config %}
remove-default-master-conf-file:
Expand Down
1 change: 1 addition & 0 deletions salt/minion.sls
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ salt-minion:
- name: {{ salt_settings.minion_service }}
- watch:
- file: remove-old-minion-conf-file
- order: last
{% endif %}
{%- if not salt_settings.restart_via_at %}
cmd.run:
Expand Down

0 comments on commit 250e744

Please sign in to comment.