Merge pull request #258 from aboe76/enable_salt_minion_standalone
fix minion daemon to be enabled if master_type is set to disable
This commit is contained in:
commit
5e9c937931
@ -15,10 +15,11 @@ salt-minion:
|
|||||||
standalone: True
|
standalone: True
|
||||||
{%- if salt_settings.minion.master_type is defined and salt_settings.minion.master_type == 'disable' %}
|
{%- if salt_settings.minion.master_type is defined and salt_settings.minion.master_type == 'disable' %}
|
||||||
service.running:
|
service.running:
|
||||||
|
- enable: True
|
||||||
{%- else %}
|
{%- else %}
|
||||||
service.dead:
|
service.dead:
|
||||||
{%- endif %}
|
|
||||||
- enable: False
|
- enable: False
|
||||||
|
{%- endif %}
|
||||||
- name: {{ salt_settings.minion_service }}
|
- name: {{ salt_settings.minion_service }}
|
||||||
- require:
|
- require:
|
||||||
{% if salt_settings.install_packages %}
|
{% if salt_settings.install_packages %}
|
||||||
|
Loading…
Reference in New Issue
Block a user