Try to fix on older salt version
diff --git a/salt/map.jinja b/salt/map.jinja
index 0a9c258..b66180e 100644
--- a/salt/map.jinja
+++ b/salt/map.jinja
@@ -41,8 +41,10 @@
- salt-master
{%- endload %}
+{%- if pillar.salt.master is defined %}
{%- 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) %}
+{%- endif %}
{%- load_yaml as minion_common %}
@@ -85,8 +87,10 @@
- salt-minion
{%- endload %}
+{%- if pillar.salt.minion is defined %}
{%- 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) %}
+{%- endif %}
{%- load_yaml as api_common %}
@@ -125,6 +129,7 @@
- pkg-config
{%- endload %}
+{%- if pillar.salt.control is defined %}
{%- 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) %}
-
+{%- endif %}