From a5ace15000850c14eb0a15244d47781fdad400fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jakub=20Soko=C5=82owski?= Date: Fri, 1 Nov 2019 16:37:05 +0100 Subject: [PATCH] simpliy playbook, run master beacon nodes together with slaves MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Jakub SokoĊ‚owski --- ansible/main.yml | 27 +++++---------------------- 1 file changed, 5 insertions(+), 22 deletions(-) diff --git a/ansible/main.yml b/ansible/main.yml index 069fa71..eba4c5e 100644 --- a/ansible/main.yml +++ b/ansible/main.yml @@ -4,33 +4,15 @@ roles: - { role: origin-cert } - { role: nimbus-stats, tags: nimbus-stats } - # - { role: infra-role-eth2-testnet-site } - tasks: - - include_role: - name: infra-role-beacon-node - with_sequence: count=2 - vars: - beacon_node_network: 'testnet0' - beacon_node_metrics_port : '{{ 9200 - 1 + item|int }}' - beacon_node_listening_port: '{{ 9000 - 1 + item|int }}' - beacon_node_discovery_port: '{{ 9000 - 1 + item|int }}' - beacon_node_cont_name: 'beacon-node-{{ beacon_node_network}}-{{ item }}' - - - include_role: - name: infra-role-beacon-node - with_sequence: count=2 - vars: - beacon_node_network: 'testnet1' - beacon_node_metrics_port : '{{ 9300 - 1 + item|int }}' - beacon_node_listening_port: '{{ 9100 - 1 + item|int }}' - beacon_node_discovery_port: '{{ 9100 - 1 + item|int }}' - beacon_node_cont_name: 'beacon-node-{{ beacon_node_network}}-{{ item }}' - name: Configure Nimbus cluster - hosts: nimbus-slaves + hosts: + - nimbus-master + - nimbus-slaves tasks: - include_role: name: infra-role-beacon-node + tags: beacon-node with_sequence: count=2 vars: beacon_node_network: 'testnet0' @@ -41,6 +23,7 @@ - include_role: name: infra-role-beacon-node + tags: beacon-node with_sequence: count=2 vars: beacon_node_network: 'testnet1'