diff --git a/ansible/group_vars/nimbus.mainnet.yml b/ansible/group_vars/nimbus.mainnet.yml index d4b3c86..9019c48 100644 --- a/ansible/group_vars/nimbus.mainnet.yml +++ b/ansible/group_vars/nimbus.mainnet.yml @@ -2,8 +2,8 @@ beacon_node_network: 'mainnet' beacon_node_repo_branch: 'stable' -# WARNING: Since these are Eth 2 bootnodes we need to keep the keys and IPs unchanged. -beacon_node_netkey: '{{lookup("bitwarden", "nimbus/netkey", field=hostname)}}' +# Mainnet validators run on a separate fleet. +beacon_node_dist_validators_enabled: false # Bootnodes should subscribe to all subnets beacon_node_subscribe_all: true diff --git a/ansible/mainnet.yml b/ansible/mainnet.yml index ba181dd..27c3df8 100644 --- a/ansible/mainnet.yml +++ b/ansible/mainnet.yml @@ -12,6 +12,40 @@ - name: Configure network mainnet bootnodes become: true hosts: 'nimbus-mainnet-small' + vars: + # WARNING: Since these are Eth 2 bootnodes we need to keep the keys and IPs unchanged. + beacon_node_netkey: '{{lookup("bitwarden", "nimbus/netkey", field=hostname)}}' roles: - { role: get-geth-web3-urls, tags: [ get-geth-web3-urls ] } - { role: infra-role-beacon-node-linux, tags: [ beacon-node ] } + +- name: Deploy mainnet linux beacon nodes + become: true + hosts: nimbus-mainnet-metal + roles: + - { role: get-geth-web3-urls, tags: [ get-geth-web3-urls ] } + tasks: + - include_role: name=infra-role-beacon-node-linux + tags: beacon-node + vars: + # TEMPORARY switch for Mainnet Altair transition + beacon_node_service_name: 'beacon-node-{{ beacon_node_network }}-{{ node.branch }}-{{ "%02d"|format(node.idx) }}' + beacon_node_repo_branch: 'unstable' + beacon_node_threads: '{{ (node.branch == "testing") | ternary(4, 1) }}' + beacon_node_build_frequency: '{{ node.build_frequency }}' + beacon_node_discovery_port: '{{ 9000 + port_offset }}' + beacon_node_listening_port: '{{ 9000 + port_offset }}' + beacon_node_metrics_port: '{{ 9200 + port_offset }}' + beacon_node_rest_port: '{{ 9300 + port_offset }}' + beacon_node_rpc_port: '{{ 9900 + port_offset }}' + beacon_node_rpc_enabled: true + with_items: + - { branch: 'stable', idx: 1, build_frequency: '*-*-* 12:00:00' } + - { branch: 'stable', idx: 2, build_frequency: '*-*-* 13:00:00' } + - { branch: 'testing', idx: 1, build_frequency: '*-*-* 14:00:00' } + - { branch: 'testing', idx: 2, build_frequency: '*-*-* 15:00:00' } + - { branch: 'unstable', idx: 1, build_frequency: '*-*-* 16:00:00' } + - { branch: 'unstable', idx: 2, build_frequency: '*-*-* 17:00:00' } + loop_control: + loop_var: node + index_var: port_offset diff --git a/ansible/requirements.yml b/ansible/requirements.yml index c5144b5..f477fbc 100644 --- a/ansible/requirements.yml +++ b/ansible/requirements.yml @@ -16,7 +16,7 @@ - name: infra-role-bootstrap-linux src: git@github.com:status-im/infra-role-bootstrap-linux.git - version: 8a47c73754ea018bbad19992164d860f9c5c175f + version: 1c3598d71f948763d327e6bb81a5f9a3cdf5c063 scm: git - name: infra-role-bootstrap-windows