From 0dbc703060d22c09b7085c474dfe7fcd8ef32593 Mon Sep 17 00:00:00 2001
From: phahulin
Date: Thu, 22 Nov 2018 16:20:15 +0300
Subject: [PATCH] Prepare for 2.2.1 update
---
docs/Update-parity-version.md | 8 ++++----
group_vars/upd-parity-version.example | 14 ++++++++------
roles/upd-parity-version/tasks/main.yml | 9 +++++++++
3 files changed, 21 insertions(+), 10 deletions(-)
diff --git a/docs/Update-parity-version.md b/docs/Update-parity-version.md
index cfa3de4..dae7130 100644
--- a/docs/Update-parity-version.md
+++ b/docs/Update-parity-version.md
@@ -55,9 +55,9 @@ and check parity version (replace `bootnode` with correct role name ,e.g. `valid
```
sample output:
```
-Parity
- version Parity/v1.11.8-stable-c754a02-20180725/x86_64-linux-gnu/rustc1.27.2
-Copyright 2015, 2016, 2017, 2018 Parity Technologies (UK) Ltd
+Parity Ethereum
+ version Parity-Ethereum/v2.2.1-beta-5c56fc5-20181114/x86_64-linux-gnu/rustc1.30.1
+Copyright 2015-2018 Parity Technologies (UK) Ltd.
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
@@ -122,7 +122,7 @@ cp -a backups-version/20180209T214517/node.toml .
sample output:
```
Parity
- version Parity/v1.10.6-unstable-bc0d134-20180605/x86_64-linux-gnu/rustc1.26.2
+ version Parity/v1.11.8-stable-c754a02-20180725/x86_64-linux-gnu/rustc1.27.2
Copyright 2015, 2016, 2017, 2018 Parity Technologies (UK) Ltd
License GPLv3+: GNU GPL version 3 or later .
This is free software: you are free to change and redistribute it.
diff --git a/group_vars/upd-parity-version.example b/group_vars/upd-parity-version.example
index 55e3cb2..2604279 100644
--- a/group_vars/upd-parity-version.example
+++ b/group_vars/upd-parity-version.example
@@ -3,21 +3,23 @@
poa_role: "bootnode"
# repo to fetch new binaries from
-PARITY_BIN_LOC_UBUNTU: "https://releases.parity.io/v1.11.8/x86_64-unknown-linux-gnu/parity"
-PARITY_BIN_SHA256_UBUNTU: "fbb349dc45e5de1b337880622be88c375998bf2ce69bb402eb9fe60f63b361f9"
-PARITY_BIN_LOC_CENTOS: "https://releases.parity.io/v1.11.8/x86_64-unknown-centos-gnu/parity"
-PARITY_BIN_SHA256_CENTOS: "3f10fb875c5d51ec890f975c60606fc2c258431814cb8d33c5231fe1b8c13259"
+PARITY_BIN_LOC_UBUNTU: "https://releases.parity.io/v2.2.1/x86_64-unknown-linux-gnu/parity"
+PARITY_BIN_SHA256_UBUNTU: "dfdb0ba6d8847a164600baad7008c1a8715126aca21bb0909e7184f2b3bf2d21"
+PARITY_BIN_LOC_CENTOS: "https://releases.parity.io/v2.2.1/x86_64-unknown-linux-gnu/parity"
+PARITY_BIN_SHA256_CENTOS: "dfdb0ba6d8847a164600baad7008c1a8715126aca21bb0909e7184f2b3bf2d21"
-PARITY_VERSION_CHECK: "1.11.8"
+PARITY_VERSION_CHECK: "2.2.1"
# backup options
backup_parity_data: "on"
# do full resync
-resync: "off"
+resync: "on"
# strings to remove from node.toml
bootnode_node_toml_lines_to_remove: []
# strings to add in node.toml
bootnode_node_toml_lines_to_add: []
+
+update_netstats: "on"
diff --git a/roles/upd-parity-version/tasks/main.yml b/roles/upd-parity-version/tasks/main.yml
index 5ac2485..35b6a52 100644
--- a/roles/upd-parity-version/tasks/main.yml
+++ b/roles/upd-parity-version/tasks/main.yml
@@ -78,6 +78,15 @@
become_user: "{{ poa_role }}"
when: (resync or "off") == "on"
+- name: Update netstats
+ command: "git pull origin master"
+ args:
+ chdir: "{{ home }}/eth-net-intelligence-api"
+ # when: (update_netstats or "off") == "on"
+ become: true
+ become_user: "{{ poa_role }}"
+ ignore_errors: yes
+
- name: Launch poa-parity service
service: name=poa-parity state=started