Merge pull request #90 from aboe76/master

Updated map.jinja for archlinux package convention
This commit is contained in:
Nitin Madhok 2015-02-06 02:16:17 +05:30
commit f39fff2329
2 changed files with 21 additions and 13 deletions

View File

@ -1,4 +1,14 @@
salt: salt:
# to overwrite map.jinja salt packages
lookup:
salt-master: 'salt-master'
salt-minion: 'salt-minion'
salt-syndic: 'salt-syndic'
salt-cloud: 'salt-cloud'
salt-ssh: 'salt-ssh'
# salt master config
master: master:
fileserver_backend: fileserver_backend:
- git - git
@ -9,6 +19,8 @@ salt:
file_roots: file_roots:
base: base:
- /srv/salt - /srv/salt
# salt minion config:
minion: minion:
master: salt master: salt
fileserver_backend: fileserver_backend:
@ -29,6 +41,8 @@ salt:
test.baz: test.baz:
spam: sausage spam: sausage
cheese: bread cheese: bread
# salt cloud config
cloud: cloud:
master: salt master: salt
folders: folders:

View File

@ -1,4 +1,4 @@
{% set map = { {% set salt = salt['grains.filter_by']({
'Debian': {'salt-master': 'salt-master', 'Debian': {'salt-master': 'salt-master',
'salt-minion': 'salt-minion', 'salt-minion': 'salt-minion',
'salt-syndic': 'salt-syndic', 'salt-syndic': 'salt-syndic',
@ -33,11 +33,11 @@
'salt-minion': 'app-admin/salt', 'salt-minion': 'app-admin/salt',
'salt-syndic': 'app-admin/salt', 'salt-syndic': 'app-admin/salt',
'salt-cloud': 'app-admin/salt'}, 'salt-cloud': 'app-admin/salt'},
'Arch': {'salt-master': 'salt', 'Arch': {'salt-master': 'salt-zmq',
'salt-minion': 'salt', 'salt-minion': 'salt-zmq',
'salt-syndic': 'salt', 'salt-syndic': 'salt-zmq',
'salt-cloud': 'salt', 'salt-cloud': 'salt-zmq',
'salt-ssh': 'salt'}, 'salt-ssh': 'salt-zmq'},
'openSUSE':{'salt-master': 'salt-master', 'openSUSE':{'salt-master': 'salt-master',
'salt-minion': 'salt-minion', 'salt-minion': 'salt-minion',
'salt-syndic': 'salt-syndic', 'salt-syndic': 'salt-syndic',
@ -51,10 +51,4 @@
'minion-service': 'salt_minion', 'minion-service': 'salt_minion',
'master-service': 'salt_master', 'master-service': 'salt_master',
'syndic-service': 'salt_syndic'}, 'syndic-service': 'salt_syndic'},
} %} }, merge=salt['pillar.get']('salt:lookup')) %}
{% 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 %}