mirror of
https://github.com/saltstack-formulas/salt-formula.git
synced 2024-12-18 10:32:54 +01:00
Merge pull request #81 from aboe76/use_lookup_map.jinja
Removed package_map lookup
This commit is contained in:
commit
77522d6e56
@ -1,4 +1,4 @@
|
|||||||
{% from "salt/package-map.jinja" import pkgs with context %}
|
{% from "salt/map.jinja" import pkgs with context %}
|
||||||
{% set salt = pillar.get('salt', {}) -%}
|
{% set salt = pillar.get('salt', {}) -%}
|
||||||
{% set cloud = salt.get('cloud', {}) -%}
|
{% set cloud = salt.get('cloud', {}) -%}
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% set package_table = {
|
{% set pkgs = 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',
|
||||||
@ -48,11 +48,6 @@
|
|||||||
'config-path': '/usr/local/etc/salt',
|
'config-path': '/usr/local/etc/salt',
|
||||||
'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'), base='default') %}
|
||||||
{% if 'package_table' in pillar %}
|
|
||||||
{% set pkgs = pillar['package_table'] %}
|
|
||||||
{% elif grains['os'] in package_table %}
|
|
||||||
{% set pkgs = package_table[grains['os']] %}
|
|
||||||
{% endif %}
|
|
@ -1,4 +1,4 @@
|
|||||||
{% from "salt/package-map.jinja" import pkgs with context %}
|
{% from "salt/map.jinja" import pkgs with context %}
|
||||||
|
|
||||||
salt-master:
|
salt-master:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% from "salt/package-map.jinja" import pkgs with context %}
|
{% from "salt/map.jinja" import pkgs with context %}
|
||||||
|
|
||||||
salt-minion:
|
salt-minion:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% from "salt/package-map.jinja" import pkgs with context %}
|
{% from "salt/map.jinja" import pkgs with context %}
|
||||||
|
|
||||||
ensure salt-ssh is installed:
|
ensure salt-ssh is installed:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% from "salt/package-map.jinja" import pkgs with context %}
|
{% from "salt/map.jinja" import pkgs with context %}
|
||||||
|
|
||||||
salt-minion:
|
salt-minion:
|
||||||
pkg.installed:
|
pkg.installed:
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
{% from "salt/package-map.jinja" import pkgs with context %}
|
{% from "salt/map.jinja" import pkgs with context %}
|
||||||
|
|
||||||
include:
|
include:
|
||||||
- salt.master
|
- salt.master
|
||||||
|
Loading…
Reference in New Issue
Block a user