Browse Source

Try to fix on older salt version

tags/0.4
Filip Pytloun 8 years ago
parent
commit
77b2a09871
1 changed files with 6 additions and 1 deletions
  1. +6
    -1
      salt/map.jinja

+ 6
- 1
salt/map.jinja View File

- salt-master - salt-master
{%- endload %} {%- endload %}


{%- if pillar.salt.master is defined %}
{%- set raw_master = salt['grains.filter_by'](master_specific, merge=salt['pillar.get']('salt:master')) %} {%- set raw_master = salt['grains.filter_by'](master_specific, merge=salt['pillar.get']('salt:master')) %}
{%- set master = salt['grains.filter_by'](master_common, merge=raw_master) %} {%- set master = salt['grains.filter_by'](master_common, merge=raw_master) %}
{%- endif %}




{%- load_yaml as minion_common %} {%- load_yaml as minion_common %}
- salt-minion - salt-minion
{%- endload %} {%- endload %}


{%- if pillar.salt.minion is defined %}
{%- set raw_minion = salt['grains.filter_by'](minion_specific, merge=salt['pillar.get']('salt:minion')) %} {%- set raw_minion = salt['grains.filter_by'](minion_specific, merge=salt['pillar.get']('salt:minion')) %}
{%- set minion = salt['grains.filter_by'](minion_common, merge=raw_minion) %} {%- set minion = salt['grains.filter_by'](minion_common, merge=raw_minion) %}
{%- endif %}




{%- load_yaml as api_common %} {%- load_yaml as api_common %}
- pkg-config - pkg-config
{%- endload %} {%- endload %}


{%- if pillar.salt.control is defined %}
{%- set raw_control = salt['grains.filter_by'](control_specific, merge=salt['pillar.get']('salt:control')) %} {%- set raw_control = salt['grains.filter_by'](control_specific, merge=salt['pillar.get']('salt:control')) %}
{%- set control = salt['grains.filter_by'](control_common, merge=raw_control) %} {%- set control = salt['grains.filter_by'](control_common, merge=raw_control) %}
{%- endif %}

Loading…
Cancel
Save