Browse Source

Merge pull request #77 from rhertzog/misc-bugfixes

FIxes for nodegroups/log_granular_levels settings and small cleanups
tags/v0.57.0
Wolodja Wentland 10 years ago
parent
commit
98917adad2
2 changed files with 10 additions and 10 deletions
  1. +8
    -8
      salt/files/master.d/_defaults.conf
  2. +2
    -2
      salt/files/minion.d/_defaults.conf

+ 8
- 8
salt/files/master.d/_defaults.conf View File

gitfs_remotes: gitfs_remotes:
{%- for remote in master['gitfs_remotes'] %} {%- for remote in master['gitfs_remotes'] %}
{%- if remote is iterable and remote is not string %} {%- if remote is iterable and remote is not string %}
{%- for repo, children in remote.iteritems() %}
{%- for repo, children in remote.items() %}
- {{ repo }}: - {{ repo }}:
{%- for child in children %} {%- for child in children %}
{%- for key, value in child.iteritems() %}
{%- for key, value in child.items() %}
- {{ key }}: {{ value }} - {{ key }}: {{ value }}
{%- endfor -%} {%- endfor -%}
{%- endfor -%} {%- endfor -%}
# #
{% if 'log_granular_levels' in master %} {% if 'log_granular_levels' in master %}
log_granular_levels: log_granular_levels:
{% for name, lvl in master['log_granular_levels'] %}
{% for name, lvl in master['log_granular_levels'].items() %}
{{ name }}: {{ lvl }} {{ name }}: {{ lvl }}
{% endfor %} {% endfor %}
{% elif 'log_granular_levels' in salt %} {% elif 'log_granular_levels' in salt %}
log_granular_levels: log_granular_levels:
{% for name, lvl in salt['log_granular_levels'] %}
{% for name, lvl in salt['log_granular_levels'].items() %}
{{ name }}: {{ lvl }} {{ name }}: {{ lvl }}
{% endfor %} {% endfor %}
{% else %} {% else %}
# group2: 'G@os:Debian and foo.domain.com' # group2: 'G@os:Debian and foo.domain.com'
{% if 'nodegroups' in master %} {% if 'nodegroups' in master %}
nodegroups: nodegroups:
{% for name, lvl in master['nodegroups'] %}
{% for name, lvl in master['nodegroups'].items() %}
{{ name }}: {{ lvl }} {{ name }}: {{ lvl }}
{% endfor %} {% endfor %}
{% elif 'nodegroups' in salt %} {% elif 'nodegroups' in salt %}
nodegroups: nodegroups:
{% for name, lvl in salt['nodegroups'] %}
{% for name, lvl in salt['nodegroups'].items() %}
{{ name }}: {{ lvl }} {{ name }}: {{ lvl }}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
##### Halite ##### ##### Halite #####
########################################## ##########################################
halite: halite:
{% for name, value in master['halite'].iteritems() %}
{% for name, value in master['halite'].items() %}
{{ name }}: {{ value }} {{ name }}: {{ value }}
{% endfor %} {% endfor %}
{% endif %} {% endif %}
##### rest_cherrypy ##### ##### rest_cherrypy #####
########################################## ##########################################
rest_cherrypy: rest_cherrypy:
{% for name, value in master['rest_cherrypy'].iteritems() %}
{% for name, value in master['rest_cherrypy'].items() %}
{{ name }}: {{ value }} {{ name }}: {{ value }}
{% endfor %} {% endfor %}
{% endif %} {% endif %}

+ 2
- 2
salt/files/minion.d/_defaults.conf View File

gitfs_remotes: gitfs_remotes:
{%- for remote in minion['gitfs_remotes'] %} {%- for remote in minion['gitfs_remotes'] %}
{%- if remote is iterable and remote is not string %} {%- if remote is iterable and remote is not string %}
{%- for repo, children in remote.iteritems() %}
{%- for repo, children in remote.items() %}
- {{ repo }}: - {{ repo }}:
{%- for child in children %} {%- for child in children %}
{%- for key, value in child.iteritems() %}
{%- for key, value in child.items() %}
- {{ key }}: {{ value }} - {{ key }}: {{ value }}
{%- endfor -%} {%- endfor -%}
{%- endfor -%} {%- endfor -%}

Loading…
Cancel
Save