-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathmain.yaml
64 lines (53 loc) · 2.13 KB
/
main.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
besu_user: besu
besu_datadir: /data/besu
besu_auth_jwt_path: /data/execution-auth.secret
besu_announced_ip: "{{ ansible_host }}"
besu_announced_ipv6: "{{ ansible_default_ipv6.address if besu_ipv6_enabled and ansible_default_ipv6.address is defined else '' }}"
besu_cleanup: false # when set to "true" it will remove the container
besu_ports_p2p: 30303
besu_ports_http_rpc: 8545
besu_ports_engine: 8551
besu_ports_metrics: 9545
besu_ipv6_enabled: false
besu_container_name: besu
besu_container_image: hyperledger/besu:latest
besu_container_env: {}
besu_container_ports_ipv4:
- "127.0.0.1:{{ besu_ports_http_rpc }}:{{ besu_ports_http_rpc }}"
- "127.0.0.1:{{ besu_ports_engine }}:{{ besu_ports_engine }}"
- "0.0.0.0:{{ besu_ports_p2p }}:{{ besu_ports_p2p }}"
- "0.0.0.0:{{ besu_ports_p2p }}:{{ besu_ports_p2p }}/udp"
besu_container_ports_ipv6:
- "[::]:{{ besu_ports_p2p }}:{{ besu_ports_p2p }}"
- "[::]:{{ besu_ports_p2p }}:{{ besu_ports_p2p }}/udp"
besu_container_ports: >-
{{ besu_container_ports_ipv4 + (besu_container_ports_ipv6 if besu_ipv6_enabled and ansible_default_ipv6.address is defined else []) }}
besu_container_volumes:
- "{{ besu_datadir }}:/data"
- "{{ besu_auth_jwt_path }}:/execution-auth.jwt:ro"
besu_container_security_opts: []
besu_container_stop_timeout: "300"
besu_container_networks: []
besu_container_command_default:
- --data-path=/data
- --nat-method=NONE
- --p2p-host={{ besu_announced_ip }}
- --p2p-port={{ besu_ports_p2p }}
- --rpc-http-enabled
- --rpc-http-host=0.0.0.0
- --rpc-http-port={{ besu_ports_http_rpc }}
- --rpc-http-cors-origins=*
- --host-allowlist=*
- --engine-jwt-secret=/execution-auth.jwt
- --engine-rpc-port={{ besu_ports_engine }}
- --engine-host-allowlist=*
- --metrics-enabled
- --metrics-host=0.0.0.0
- --metrics-port={{ besu_ports_metrics }}
besu_container_command_v6:
- --p2p-host-ipv6={{ besu_announced_ipv6 }}
besu_container_command: >-
{{ besu_container_command_default + (besu_container_command_v6 if besu_ipv6_enabled and ansible_default_ipv6.address is defined else []) }}
besu_container_command_extra_args: []
# Default image pull policy
besu_container_pull: false