From 1ce2b2c7fb6af402f70606f1135b7031054d5596 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Thu, 29 Apr 2021 14:34:39 +0200 Subject: [PATCH] rayonism: deploy Geth node for steklo testnet MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit https://github.com/status-im/infra-nimbus/issues/53 Signed-off-by: Jakub SokoĊ‚owski --- ansible/group_vars/nimbus.rayonism.yml | 21 +++++++++++++++++++++ ansible/rayonism.yml | 18 ++++++++++++++++++ ansible/requirements.yml | 2 +- 3 files changed, 40 insertions(+), 1 deletion(-) create mode 100644 ansible/group_vars/nimbus.rayonism.yml create mode 100644 ansible/rayonism.yml diff --git a/ansible/group_vars/nimbus.rayonism.yml b/ansible/group_vars/nimbus.rayonism.yml new file mode 100644 index 0000000..59e3e4b --- /dev/null +++ b/ansible/group_vars/nimbus.rayonism.yml @@ -0,0 +1,21 @@ +--- +# Geth node +geth_service_name: 'nimbus-steklo' +geth_cont_image: 'ethereum/client-go@sha256:ac3cbd85ba801989a263263b318f68f6342a373c26b2d949ca925846ec06980b' +geth_account_pass: '{{lookup("passwordstore", "service/Nimbus-Geth/password")}}' +geth_sync_mode: 'fast' +geth_init_enabled: true +geth_init_url: 'https://raw.githubusercontent.com/protolambda/steklo/92da84796d820855c8a42870f5ad2ad7e669527c/eth1_config.json' +geth_init_sha256: '7c826454da40b158f21124e9721ee5531e841b68d4888169f4227598d32b6e35' +geth_extra_flags: + - '--catalyst' + - '--miner.etherbase 0x6Afe05557279c2060937aE5559Fa6108405a83CC' + # Hack fix for `invalid peer config: light peer count (100) >= total peer count (0)` + - '--light.maxpeers=-1' + +# WARNING: This is a hack to avoid providing network flag. +geth_network_name: 'mainnet' + +# Beacon node +beacon_node_network: 'steklo' +beacon_node_cont_tag: 'qmerge-large' diff --git a/ansible/rayonism.yml b/ansible/rayonism.yml new file mode 100644 index 0000000..a772c68 --- /dev/null +++ b/ansible/rayonism.yml @@ -0,0 +1,18 @@ +--- +- name: 'Verify Ansible versions' + hosts: all + run_once: true + connection: local + tags: always + gather_facts: false + tasks: + - local_action: command ./versioncheck.py + changed_when: false + +- name: Configure rayonism node + become: true + # To avoid clashing/duplicate validators. + any_errors_fatal: true + hosts: 'nimbus.rayonism' + roles: + - { role: infra-role-geth, tags: infra-role-geth } diff --git a/ansible/requirements.yml b/ansible/requirements.yml index 00a7a56..6f49711 100644 --- a/ansible/requirements.yml +++ b/ansible/requirements.yml @@ -71,7 +71,7 @@ - name: infra-role-geth src: git@github.com:status-im/infra-role-geth.git - version: 682b6ffeb3e6b1c713057d8497b32f60505c4f10 + version: 27ff1d257bb3aeba1496de97b2a604eff40c3188 scm: git - name: infra-role-geth-exporter