From 1ffbb4b6bc947ffa2b3e406ee13ac489f82d9ba0 Mon Sep 17 00:00:00 2001 From: Niels Abspoel Date: Sat, 1 Oct 2016 09:30:39 +0200 Subject: [PATCH] add option to start minion service if master_type is set to disable --- salt/standalone.sls | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/salt/standalone.sls b/salt/standalone.sls index e98a58c..ba5441f 100644 --- a/salt/standalone.sls +++ b/salt/standalone.sls @@ -13,7 +13,11 @@ salt-minion: - exclude_pat: _* - context: standalone: True +{%- if salt_settings.minion.master_type is defined and salt_settings.minion.master_type == 'disable' %} + service.running: +{%- else %} service.dead: +{%- endif %} - enable: False - name: {{ salt_settings.minion_service }} - require: