Skip to content

Commit

Permalink
No need for all the hoop-jumping
Browse files Browse the repository at this point in the history
if a special structure is required for master, it'll use whatever's defined in pillar
  • Loading branch information
blast-hardcheese committed Oct 7, 2015
1 parent 8d09848 commit 963f4f2
Showing 1 changed file with 2 additions and 18 deletions.
20 changes: 2 additions & 18 deletions salt/files/minion.d/f_defaults.conf
Original file line number Diff line number Diff line change
Expand Up @@ -19,26 +19,10 @@
# minion includes
{{ get_config('default_include', 'minion.d/*.conf') }}

# master configs
{%- if 'master' in cfg_minion -%}
{%- if cfg_minion['master'] is not string %}
master:
{% for name in cfg_minion['master'] -%}
- {{ name }}
{% endfor -%}
{%- else %}
# configure master
{% if 'master' in cfg_minion -%}
{{ get_config('master', 'salt') }}
{%- endif %}
{% elif 'master' in cfg_salt -%}
{%- if cfg_salt['master'] is not string %}
master:
{% for name in cfg_salt['master'] -%}
- {{ name }}
{% endfor -%}
{%- else %}
{{ get_config('master', 'salt') }}
{%- endif -%}
{%- endif %}

# choose a random master
{{ get_config('random_master', 'False') }}
Expand Down

0 comments on commit 963f4f2

Please sign in to comment.