From 7b4104cf6ef845d8201355023408977a9dfc1a9f Mon Sep 17 00:00:00 2001 From: Niels Abspoel Date: Tue, 13 Jan 2015 20:07:46 +0100 Subject: [PATCH 1/2] updated archlinux map.jinja, to install salt-zmq updated the map style without the base='default' parameter --- salt/map.jinja | 20 +++++++------------- 1 file changed, 7 insertions(+), 13 deletions(-) diff --git a/salt/map.jinja b/salt/map.jinja index 5425e37..6c48eec 100644 --- a/salt/map.jinja +++ b/salt/map.jinja @@ -1,4 +1,4 @@ -{% set map = { +{% set salt = salt['grains.filter_by']({ 'Debian': {'salt-master': 'salt-master', 'salt-minion': 'salt-minion', 'salt-syndic': 'salt-syndic', @@ -33,11 +33,11 @@ 'salt-minion': 'app-admin/salt', 'salt-syndic': 'app-admin/salt', 'salt-cloud': 'app-admin/salt'}, - 'Arch': {'salt-master': 'salt', - 'salt-minion': 'salt', - 'salt-syndic': 'salt', - 'salt-cloud': 'salt', - 'salt-ssh': 'salt'}, + 'Arch': {'salt-master': 'salt-zmq', + 'salt-minion': 'salt-zmq', + 'salt-syndic': 'salt-zmq', + 'salt-cloud': 'salt-zmq', + 'salt-ssh': 'salt-zmq'}, 'openSUSE':{'salt-master': 'salt-master', 'salt-minion': 'salt-minion', 'salt-syndic': 'salt-syndic', @@ -51,10 +51,4 @@ 'minion-service': 'salt_minion', 'master-service': 'salt_master', 'syndic-service': 'salt_syndic'}, -} %} - -{% 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 %} +}, merge=salt['pillar.get']('salt:lookup')) %} From d071713fa71a3e33f55859490157851d7948d284 Mon Sep 17 00:00:00 2001 From: Niels Abspoel Date: Tue, 13 Jan 2015 20:13:51 +0100 Subject: [PATCH 2/2] update pillar.example for new lookup --- pillar.example | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/pillar.example b/pillar.example index 5aacc2c..6ed3d62 100644 --- a/pillar.example +++ b/pillar.example @@ -1,4 +1,14 @@ 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: fileserver_backend: - git @@ -9,6 +19,8 @@ salt: file_roots: base: - /srv/salt + + # salt minion config: minion: master: salt fileserver_backend: @@ -29,6 +41,8 @@ salt: test.baz: spam: sausage cheese: bread + + # salt cloud config cloud: master: salt folders: