-
-
Notifications
You must be signed in to change notification settings - Fork 55
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* ADD: merge support molecule tests * FIX: use correct length for engine.jwt * FIX: use latest teku * FIX: correct settings for el<->cl connection * FIX: adapt verify for geth-teku el-cl engine check * FIX: start cl before el generates jwt too Co-authored-by: NeoPlays <[email protected]>
- Loading branch information
Showing
28 changed files
with
323 additions
and
366 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -30,4 +30,4 @@ scenario: | |
#- idempotence | ||
- lint | ||
- verify | ||
- destroy | ||
- destroy |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,4 +4,4 @@ | |
tasks: | ||
- name: "Include manage-service" | ||
include_role: | ||
name: "manage-service" | ||
name: "manage-service" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,4 +27,4 @@ | |
- include_role: | ||
name: "configure-firewall" | ||
|
||
# EOF | ||
# EOF |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,4 +13,4 @@ | |
retries: 60 | ||
delay: 10 | ||
|
||
# EOF | ||
# EOF |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
98 changes: 98 additions & 0 deletions
98
controls/roles/manage-service/molecule/geth-teku/converge.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,98 @@ | ||
--- | ||
- name: Converge | ||
hosts: all | ||
vars_files: | ||
- ../../../../defaults/stereum_defaults.yaml | ||
vars: | ||
teku_service: d2cf0214-ea78-11ec-bbf0-ab0094207ad6 | ||
geth_service: d6358d80-ea76-11ec-94b3-2fb45dfeb66a | ||
|
||
tasks: | ||
# geth service | ||
- block: | ||
- set_fact: | ||
stereum: "{{ stereum_static | combine(stereum_args, recursive=True) }}" | ||
- name: "Include manage-service" | ||
include_role: | ||
name: "manage-service" | ||
vars: | ||
stereum_args: | ||
manage_service: | ||
save: true | ||
state: started | ||
configuration: | ||
service: GethService | ||
id: "{{ geth_service }}" | ||
image: "ethereum/client-go:{{ stereum_static.defaults.versions.geth }}" | ||
ports: | ||
- 0.0.0.0:30303:30303/tcp | ||
- 0.0.0.0:30303:30303/udp | ||
- 127.0.0.1:8551:8551 | ||
entrypoint: ["geth"] | ||
env: {} | ||
command: | ||
- --goerli | ||
- --http | ||
- --datadir=/opt/app/geth | ||
- --http.addr=0.0.0.0 | ||
- --http.vhosts=* | ||
- --http.api="engine,eth,web3,net,debug" | ||
- --http.corsdomain=* | ||
- --authrpc.addr=0.0.0.0 | ||
- --authrpc.vhosts=* | ||
- --authrpc.jwtsecret=/engine.jwt | ||
user: "2000" | ||
volumes: | ||
- "/opt/app/services/{{ geth_service }}/data:/opt/app/geth" | ||
- "/opt/app/services/{{ geth_service }}/engine.jwt:/engine.jwt" | ||
|
||
# teku beacon service | ||
- block: | ||
- set_fact: | ||
stereum: "{{ stereum_static | combine(stereum_args, recursive=True) }}" | ||
- name: "Include manage-service" | ||
include_role: | ||
name: "manage-service" | ||
vars: | ||
stereum_args: | ||
manage_service: | ||
save: true | ||
state: started | ||
configuration: | ||
service: TekuBeaconService | ||
id: "{{ teku_service }}" | ||
image: "consensys/teku:{{ stereum_static.defaults.versions.teku }}" | ||
ports: | ||
- 0.0.0.0:9001:9001/tcp | ||
- 0.0.0.0:9001:9001/udp | ||
env: | ||
JAVA_OPTS: -Xmx4g | ||
entrypoint: ["/opt/teku/bin/teku"] | ||
command: | ||
- --network=prater | ||
- --logging=INFO | ||
- --p2p-enabled=true | ||
- --p2p-port=9001 | ||
- --ee-endpoint=http://stereum-{{ geth_service }}:8551 | ||
- --ee-jwt-secret-file=/engine.jwt | ||
- --metrics-enabled=true | ||
- --metrics-categories=BEACON,LIBP2P,NETWORK,PROCESS | ||
- --metrics-port=8008 | ||
- --metrics-interface=0.0.0.0 | ||
- --metrics-host-allowlist="*" | ||
- --metrics-publish-interval=10 | ||
- --data-path=/opt/app/data | ||
- --data-storage-mode=prune | ||
- --rest-api-port=5051 | ||
- --rest-api-host-allowlist="*" | ||
- --rest-api-interface=0.0.0.0 | ||
- --rest-api-docs-enabled=true | ||
- --rest-api-enabled=true | ||
- --log-destination=CONSOLE | ||
# - --eth1-endpoints=http://10.10.0.3:8545 | ||
user: "2000" | ||
volumes: | ||
- "/opt/app/services/{{ teku_service }}/data:/opt/app/data" | ||
- "/opt/app/services/{{ geth_service }}/engine.jwt:/engine.jwt" | ||
|
||
# EOF |
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
30 changes: 30 additions & 0 deletions
30
controls/roles/manage-service/molecule/geth-teku/prepare.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
--- | ||
- name: Prepare | ||
hosts: all | ||
roles: | ||
- role: '../' | ||
vars_files: | ||
- ../../../../defaults/stereum_defaults.yaml | ||
|
||
tasks: | ||
- name: Install python for Ansible (Ubuntu) | ||
apt: | ||
update_cache: yes | ||
name: pip | ||
become: true | ||
changed_when: false | ||
when: ansible_distribution == "Ubuntu" | ||
|
||
- name: Install python for Ansible (CentOS 8) | ||
raw: yum install -y python38 tar && yum remove -y python36 | ||
become: true | ||
changed_when: false | ||
when: ansible_distribution == "CentOS" | ||
|
||
- include_role: | ||
name: "setup" | ||
|
||
- include_role: | ||
name: "configure-firewall" | ||
|
||
# EOF |
15 changes: 15 additions & 0 deletions
15
controls/roles/manage-service/molecule/geth-teku/verify.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
--- | ||
- name: Verify | ||
hosts: all | ||
gather_facts: false | ||
tasks: | ||
# teku beacon logs | ||
- name: Teku beacon | ||
command: "docker logs --tail=20 stereum-d2cf0214-ea78-11ec-bbf0-ab0094207ad6" | ||
register: teku_beacon | ||
until: | ||
- teku_beacon.stdout is search("Endpoint http://stereum-d6358d80-ea76-11ec-94b3-2fb45dfeb66a:8551 is INVALID | Still syncing") | ||
retries: 60 | ||
delay: 10 | ||
|
||
# EOF |
Oops, something went wrong.