0
0
mirror of https://github.com/saltstack-formulas/salt-formula.git synced 2024-11-27 22:38:10 +01:00

fix(windows): dont run master state

This commit is contained in:
noelmcloughlin 2020-09-11 20:53:00 +01:00
parent 2dcd0c80ef
commit a36f2eb2d2
2 changed files with 12 additions and 1 deletions

View File

@ -6,7 +6,7 @@ include:
{%- if salt.config.get('salt_formulas:list') %}
- salt.formulas
{%- endif %}
{%- if salt.config.get('salt:master')|length > 1 %}
{%- if salt.config.get('salt:master')|length > 1 and grains.kernel != 'Windows' %}
- salt.master
{%- endif %}
{%- if salt.config.get('salt:cloud')|length > 1 %}

View File

@ -7,6 +7,8 @@ include:
- .pin
{% endif %}
{%- if grains.kernel != 'Windows' %}
{%- if grains.os == 'MacOS' %}
salt-master-macos:
file.managed:
@ -75,3 +77,12 @@ remove-default-master-conf-file:
remove-old-master-conf-file:
file.absent:
- name: {{ salt_settings.config_path }}/master.d/_defaults.conf
{%- else %}
salt-master-install-skip:
test.show_notification:
- text: |
No salt-master state for Windows
{%- endif %}