a6667cdb81
Moved package_table to it's own file, imported by sls files Moved minion package under watch Fixed some template mistakes I made
13 lines
394 B
Django/Jinja
13 lines
394 B
Django/Jinja
{% set package_table = {
|
|
'Debian': {'salt-master': 'salt-master',
|
|
'salt-minion': 'salt-minion'},
|
|
'RedHat': {'salt-master': 'salt-master',
|
|
'salt-minion': 'salt-minion'}
|
|
} %}
|
|
|
|
{% if 'package_table' in pillar %}
|
|
{% set pkgs = pillar['package_table'] %}
|
|
{% elif grains['os'] in package_table %}
|
|
{% set pkgs = package_table[grains['os']] %}
|
|
{% endif %}
|