add task for creating trusted-nodes.json file

Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
Jakub Sokołowski 2019-05-07 14:29:11 +02:00
parent a1084b7acb
commit 0beccbceef
No known key found for this signature in database
GPG Key ID: 4EF064D0E6D63020
3 changed files with 13 additions and 0 deletions

View File

@ -38,6 +38,9 @@ geth_max_peers: 25
geth_light_serv: 90
# Peer discovery protocol
geth_v5disc_enabled: true
# List of trusted peers to connect to
geth_trusted_peers: []
geth_trusted_peers_file: '{{ geth_data_path }}/trusted-nodes.json'
# logging
geth_lov_level_names:

View File

@ -1,5 +1,6 @@
---
- import_tasks: generate.yml
- import_tasks: trusted_peers.yml
- import_tasks: container.yml
- import_tasks: firewall.yml
- import_tasks: wrapper.yml

9
tasks/trusted_peers.yml Normal file
View File

@ -0,0 +1,9 @@
---
- name: Create a list of trusted peers
copy:
content: '{{ geth_trusted_peers | to_nice_json }}'
path: '{{ geth_trusted_peers_file }}'
owner: dockremap
group: docker
mode: 0600
when: geth_trusted_peers|length > 0