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 cc8d2e7
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,25 +19,9 @@
# minion includes
{{ get_config('default_include', 'minion.d/*.conf') }}

# master configs
# configure master
{%- if 'master' in cfg_minion -%}
{%- if cfg_minion['master'] is not string %}
master:
{% for name in cfg_minion['master'] -%}
- {{ name }}
{% endfor -%}
{%- else %}
{{ 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 -%}
master: {{ get_config('master', 'salt') }}
{%- endif %}

# choose a random master
Expand Down

0 comments on commit cc8d2e7

Please sign in to comment.