瀏覽代碼

Merge pull request #81 from aboe76/use_lookup_map.jinja

Removed package_map lookup
master
Seth House 10 年之前
父節點
當前提交
77522d6e56
共有 7 個文件被更改,包括 10 次插入15 次删除
  1. +1
    -1
      salt/cloud.sls
  2. +4
    -9
      salt/map.jinja
  3. +1
    -1
      salt/master.sls
  4. +1
    -1
      salt/minion.sls
  5. +1
    -1
      salt/ssh.sls
  6. +1
    -1
      salt/standalone.sls
  7. +1
    -1
      salt/syndic.sls

+ 1
- 1
salt/cloud.sls 查看文件

@@ -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 cloud = salt.get('cloud', {}) -%}


salt/package-map.jinja → salt/map.jinja 查看文件

@@ -1,4 +1,4 @@
{% set package_table = {
{% set pkgs = salt['grains.filter_by']({
'Debian': {'salt-master': 'salt-master',
'salt-minion': 'salt-minion',
'salt-syndic': 'salt-syndic',
@@ -48,11 +48,6 @@
'config-path': '/usr/local/etc/salt',
'minion-service': 'salt_minion',
'master-service': 'salt_master',
'syndic-service': 'salt_syndic'}
} %}

{% if 'package_table' in pillar %}
{% set pkgs = pillar['package_table'] %}
{% elif grains['os'] in package_table %}
{% set pkgs = package_table[grains['os']] %}
{% endif %}
'syndic-service': 'salt_syndic'},
},
merge=salt['pillar.get']('salt:lookup'), base='default') %}

+ 1
- 1
salt/master.sls 查看文件

@@ -1,4 +1,4 @@
{% from "salt/package-map.jinja" import pkgs with context %}
{% from "salt/map.jinja" import pkgs with context %}

salt-master:
pkg.installed:

+ 1
- 1
salt/minion.sls 查看文件

@@ -1,4 +1,4 @@
{% from "salt/package-map.jinja" import pkgs with context %}
{% from "salt/map.jinja" import pkgs with context %}

salt-minion:
pkg.installed:

+ 1
- 1
salt/ssh.sls 查看文件

@@ -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:
pkg.installed:

+ 1
- 1
salt/standalone.sls 查看文件

@@ -1,4 +1,4 @@
{% from "salt/package-map.jinja" import pkgs with context %}
{% from "salt/map.jinja" import pkgs with context %}

salt-minion:
pkg.installed:

+ 1
- 1
salt/syndic.sls 查看文件

@@ -1,4 +1,4 @@
{% from "salt/package-map.jinja" import pkgs with context %}
{% from "salt/map.jinja" import pkgs with context %}

include:
- salt.master

Loading…
取消
儲存