mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-11-28 11:37:44 +01:00
21 lines
764 B
Django/Jinja
21 lines
764 B
Django/Jinja
{% set package_table = {
|
|
'Debian': {'salt-master': 'salt-master',
|
|
'salt-minion': 'salt-minion'},
|
|
'Ubuntu': {'salt-master': 'salt-master',
|
|
'salt-minion': 'salt-minion'},
|
|
'CentOS': {'salt-master': 'salt-master',
|
|
'salt-minion': 'salt-minion'},
|
|
'Fedora': {'salt-master': 'salt-master',
|
|
'salt-minion': 'salt-minion'},
|
|
'RedHat': {'salt-master': 'salt-master',
|
|
'salt-minion': 'salt-minion'},
|
|
'Gentoo': {'salt-master': 'app-admin/salt',
|
|
'salt-minion': 'app-admin/salt'}
|
|
} %}
|
|
|
|
{% if 'package_table' in pillar %}
|
|
{% set pkgs = pillar['package_table'] %}
|
|
{% elif grains['os'] in package_table %}
|
|
{% set pkgs = package_table[grains['os']] %}
|
|
{% endif %}
|