Browse Source

persistent_peers fix

pull/1943/head
Greg Szabo 7 years ago
parent
commit
5cb7e151fb
2 changed files with 0 additions and 3 deletions
  1. +0
    -1
      ansible/roles/config/defaults/main.yml
  2. +0
    -2
      ansible/roles/config/templates/config.toml.j2

+ 0
- 1
ansible/roles/config/defaults/main.yml View File

@ -2,7 +2,6 @@
#genesis_file: "<undefined>"
app_options_file: "app_options_files/public_testnet"
seeds: ""
persistent_peers: ""
testnet_name: testnet1
validators: true

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

@ -87,8 +87,6 @@ seeds = "{{ seeds | default() }}"
# Comma separated list of nodes to keep persistent connections to
{% set comma = joiner(",") %}persistent_peers = "{% 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 %}
persistent_peers = "{{ persistent_peers | default() }}"
# Path to address book
addr_book_file = "config/addrbook.json"


Loading…
Cancel
Save