Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ai3
config
Commits
b03c57ff
Commit
b03c57ff
authored
Jun 30, 2019
by
ale
Browse files
Only dump allowed/available shards for existing services
parent
8813dc2e
Changes
1
Hide whitespace changes
Inline
Side-by-side
roles/accountserver/templates/config.yml.j2
View file @
b03c57ff
...
...
@@ -48,10 +48,10 @@ http_server:
{% macro dump_shards(resource_type, service_group='all') %}
{{ resource_type }}:
{% for h in groups[service_group]|sort %}
{% if hostvars[h].get('shard_id') %}
{% for h in groups.get(service_group, [])|sort if hostvars[h].get('shard_id') %}
- "{{ hostvars[h]['shard_id'] }}"
{% endif %}
{% else %}
- "NONE"
{% endfor %}
{% endmacro %}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment