Quellcode durchsuchen

pillar example is incorrect; map.jinja incorrectly names package for windows

tags/v0.57.0
Colin Stubbs vor 7 Jahren
Ursprung
Commit
996aa78a8b
2 geänderte Dateien mit 9 neuen und 9 gelöschten Zeilen
  1. +5
    -5
      pillar.example
  2. +4
    -4
      salt/map.jinja

+ 5
- 5
pillar.example Datei anzeigen



# to overwrite map.jinja salt packages # to overwrite map.jinja salt packages
lookup: lookup:
salt-master: 'salt-master'
salt-minion: 'salt-minion'
salt-syndic: 'salt-syndic'
salt-cloud: 'salt-cloud'
salt-ssh: 'salt-ssh'
salt_master: 'salt-master'
salt_minion: 'salt-minion'
salt_syndic: 'salt-syndic'
salt_cloud: 'salt-cloud'
salt_ssh: 'salt-ssh'
pyinotify: 'python-pyinotify' the package to be installed for pyinotify pyinotify: 'python-pyinotify' the package to be installed for pyinotify


# Set which release of SaltStack to use, default to 'latest' # Set which release of SaltStack to use, default to 'latest'

+ 4
- 4
salt/map.jinja Datei anzeigen

# vim: ft=jinja # vim: ft=jinja


{%- macro deep_merge(a, b) %} {%- macro deep_merge(a, b) %}
{#- This whole `'dict' in x.__class__.__name__` mess is a
workaround for the missing mapping test in CentOS 6's
{#- This whole `'dict' in x.__class__.__name__` mess is a
workaround for the missing mapping test in CentOS 6's
ancient Jinja2, see #193 #} ancient Jinja2, see #193 #}
{%- for k,v in b.items() %} {%- for k,v in b.items() %}
{%- if v is string or v is number %} {%- if v is string or v is number %}
{%- elif 'dict' not in v.__class__.__name__ %} {%- elif 'dict' not in v.__class__.__name__ %}
{%- if a[k] is not defined %} {%- if a[k] is not defined %}
{%- do a.update({ k: v }) %} {%- do a.update({ k: v }) %}
{%- elif a[k] is iterable and 'dict' not in a[k].__class__.__name__ and
{%- elif a[k] is iterable and 'dict' not in a[k].__class__.__name__ and
a[k] is not string %} a[k] is not string %}
{%- do a.update({ k: v|list + a[k]|list}) %} {%- do a.update({ k: v|list + a[k]|list}) %}
{%- else %} {%- else %}
'python_git': 'py-GitPython', 'python_git': 'py-GitPython',
}, },
'Windows': { 'Windows': {
'salt_minion': 'saltstack.minion',
'salt_minion': 'salt-minion',
'config_path': 'C:\salt\conf', 'config_path': 'C:\salt\conf',
'minion_service': 'salt-minion', 'minion_service': 'salt-minion',
}, },

Laden…
Abbrechen
Speichern