Browse Source

perfnet fixes

pull/1943/head
Greg Szabo 7 years ago
parent
commit
150902a566
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      ansible/roles/config/tasks/main.yml

+ 9
- 1
ansible/roles/config/tasks/main.yml View File

@ -49,9 +49,17 @@
- name: Copy validator network files for non-validators
when: validators == false or validators == 'false'
copy: "src={{item['src']}} dest={{item['dst']}} owner={{service}} group={{service}}"
get_url: "url={{item['src']}} dest={{item['dst']}} force=yes"
with_items:
- { src: "https://raw.githubusercontent.com/tendermint/testnets/master/{{validator_network}}/{{service}}/genesis.json" , dst: "/etc/{{service}}/genesis.json" }
- { src: "https://raw.githubusercontent.com/tendermint/testnets/master/{{validator_network}}/tendermint/genesis.json" , dst: "/etc/{{service}}/tendermint/genesis.json" }
- { src: "https://raw.githubusercontent.com/tendermint/testnets/master/{{validator_network}}/tendermint/config.toml" , dst: "/etc/{{service}}/tendermint/config.toml" }
- name: Set validator network files permissions for non-validators
when: validators == false or validators == 'false'
file: "path={{item}} owner={{service}} group={{service}}"
with_itmes:
- "/etc/{{service}}/genesis.json"
- "/etc/{{service}}/tendermint/genesis.json"
- "/etc/{{service}}/tendermint/config.toml"
"

Loading…
Cancel
Save