Skip to content
Snippets Groups Projects
Commit acf5832f authored by Niels Abspoel's avatar Niels Abspoel
Browse files

fix #84 with same logic as dnsmasq-formula

parent 77522d6e
Branches
No related tags found
No related merge requests found
{% set pkgs = salt['grains.filter_by']({
{% set map = {
'Debian': {'salt-master': 'salt-master',
'salt-minion': 'salt-minion',
'salt-syndic': 'salt-syndic',
......@@ -49,5 +49,10 @@
'minion-service': 'salt_minion',
'master-service': 'salt_master',
'syndic-service': 'salt_syndic'},
},
merge=salt['pillar.get']('salt:lookup'), base='default') %}
} %}
{% if grains.get('saltversion', '').startswith('0.17') %}
{% set salt= salt['grains.filter_by'](map, merge=salt['pillar.get']('salt:lookup'), base='default') %}
{% else %}
{% set salt = map.get(grains.os_family) %}
{% endif %}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment