Added possibility to copy bootnodes.txt to remote machine

This commit is contained in:
ArseniiPetrovich 2018-05-27 15:19:43 +03:00
parent 835c888bf1
commit 7dd405aade
7 changed files with 12 additions and 8 deletions

View File

@ -14,4 +14,4 @@ home: "/home/{{ username }}"
bootnode_archive: "off"
bootnode_orchestrator: "off"
reboot_after_completion: true
reboot_after_completion: false

View File

@ -19,4 +19,4 @@ MOC_ADDRESS: "0xdd0bb0e2a1594240fed0c2f2c17c1e9ab4f87126"
explorer_version: "acee07c"
reboot_after_completion: true
reboot_after_completion: false

View File

@ -29,5 +29,5 @@ home: "/home/{{ username }}"
moc_archive: "off"
reboot_after_completion: true
reboot_after_completion: false

View File

@ -22,4 +22,4 @@ home: "/home/{{ username }}"
nginx_headers: "off"
PROXY_PORT: "3000"
reboot_after_completion: true
reboot_after_completion: false

View File

@ -10,3 +10,4 @@ MAIN_REPO_FETCH: "poanetwork"
GENESIS_BRANCH: "master"
spec_json: ""
bootnodes_txt: ""

View File

@ -1,9 +1,12 @@
---
- name: Copy spec.json to remote machine
- name: Copy spec.json and bootnodes.txt to remote machine
copy: src={{ spec_json }} dest={{ home }}/ mode=0644 group={{ username }} owner={{ username }}
when: spec_json != ""
with_items:
- {{ spec_json }}
- {{ bootnodes_txt }}
- name: Download spec.json
- name: Download spec.json and bootnodes.txt
get_url: url={{ item }} dest={{ home }}/ mode=0644 group={{ username }} owner={{ username }}
with_items:
- "https://raw.githubusercontent.com/{{ MAIN_REPO_FETCH }}/poa-chain-spec/{{ GENESIS_BRANCH }}/spec.json"

View File

@ -19,4 +19,4 @@ SCRIPTS_VALIDATOR_BRANCH: "mainnet"
MAIN_REPO_FETCH: "poanetwork"
BLK_GAS_LIMIT: "6700000"
reboot_after_completion: true
reboot_after_completion: false