Skip to content

Commit

Permalink
Enable salt service if auto_connect to master is true.
Browse files Browse the repository at this point in the history
  • Loading branch information
maximenoel8 committed Sep 30, 2024
1 parent 1b2d290 commit 7aa35b1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion salt/minion/init.sls
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ master_configuration:
- susemanager
{% endif %}

{% if grains.get('auto_connect_to_master') %}
minion_service:
service.running:
{% if grains['install_salt_bundle'] %}
Expand All @@ -75,7 +76,6 @@ minion_service:
- name: salt-minion
- enable: True
{% endif %}
{% if grains.get('auto_connect_to_master') %}
- watch:
- file: master_configuration
{% endif %}

0 comments on commit 7aa35b1

Please sign in to comment.