Browse Source

p2p ids in config.toml

pull/1943/head
Greg Szabo 6 years ago
parent
commit
2429cfb2b7
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      ansible/roles/config/templates/config.toml.j2

+ 1
- 1
ansible/roles/config/templates/config.toml.j2 View File

@ -84,7 +84,7 @@ laddr = "tcp://0.0.0.0:46656"
# Comma separated list of seed nodes to connect to
{% if validators == true or validators == 'true' %}
{% set comma = joiner(",") %}seeds = "{% for host in ((groups[testnet_name]|default([]))+(groups['tag_Environment_'~(testnet_name|regex_replace('-','_'))]|default([])))|difference(inventory_hostname) %}{{ comma() }}{{hostvars[host]["inventory_hostname"]}}:46656{% endfor %}"
{% set comma = joiner(",") %}seeds = "{% for host in ((groups[testnet_name]|default([]))+(groups['tag_Environment_'~(testnet_name|regex_replace('-','_'))]|default([])))|difference(inventory_hostname) %}{{ comma() }}{{hostvars[host]["nodeid"]}}@{{hostvars[host]["inventory_hostname"]}}:46656{% endfor %}"
{% else %}
seeds = "{{ seeds | default() }}"
{% endif %}


Loading…
Cancel
Save