|
|
|
|
|
|
|
|
{%- 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) %} |
|
|
|
|
|
|
|
|
{%- if pillar.salt.minion.proxy is defined %} |
|
|
|
|
|
{% set proxy = salt['grains.filter_by']({ |
|
|
|
|
|
|
|
|
{%- if pillar.salt.minion.proxy_minion is defined %} |
|
|
|
|
|
{% set proxy_minion = salt['grains.filter_by']({ |
|
|
'Debian': { |
|
|
'Debian': { |
|
|
'napalm_pkgs': ['python-pip', 'libxml2-dev', 'libxslt1-dev', 'zlib1g-dev'], |
|
|
'napalm_pkgs': ['python-pip', 'libxml2-dev', 'libxslt1-dev', 'zlib1g-dev'], |
|
|
'napalm_pip_pkgs': ['napalm', 'oauth'] |
|
|
'napalm_pip_pkgs': ['napalm', 'oauth'] |
|
|
|
|
|
|
|
|
'RedHat': { |
|
|
'RedHat': { |
|
|
'napalm_pkgs': ['libxml2-dev', 'libxslt1-dev', 'zlib1g-dev'] |
|
|
'napalm_pkgs': ['libxml2-dev', 'libxslt1-dev', 'zlib1g-dev'] |
|
|
}, |
|
|
}, |
|
|
}, merge=pillar.salt.minion.get('proxy', {})) %} |
|
|
|
|
|
|
|
|
}, merge=pillar.salt.minion.get('proxy_minion', {})) %} |
|
|
{%- endif %} |
|
|
{%- endif %} |
|
|
|
|
|
|
|
|
{%- endif %} |
|
|
{%- endif %} |