-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
loop over all dictionaries in template
- Loading branch information
1 parent
2c2fb97
commit fdde401
Showing
3 changed files
with
21 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,22 @@ | ||
:port: '{{ item.port }}' | ||
:database_dir: '{{ item.path }}' | ||
{% if item.conf_options is defined and item.conf_options %} | ||
{{ item.conf_options | from_yaml }} | ||
{% for conf_option in item.conf_options %} | ||
{% if conf_option.key is defined and conf_option.key and conf_option.value is defined and conf_option.value %} | ||
{% if conf_option.key != 'options' %} | ||
:{{ conf_option.key }}: '{{ conf_option.value }}' | ||
{% elif %} | ||
:options: | ||
{% for blast_type, blast_configs in conf_option.value.items() %} | ||
:{{ blast_type }}: | ||
{% for blast_config, blast_params in blast_configs.items() %} | ||
:{{ blast_config }}: | ||
{% for blast_param in blast_params %} | ||
- {{ blast_param }} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endfor %} | ||
{% endif %} | ||
{% endif %} | ||
{% endfor %} | ||
{% endif %} |