Skip to content

Node setup

stefa2k edited this page Jun 20, 2020 · 5 revisions

Requirements

  • Computer with any Linux distribution supporting apt, e. g. Ubuntu, Debian
  • Ansible
  • Basic knowledge of IT (SSH, container, networking, shell, ...)

Recommendations

  • Ubuntu LTS
  • 2 computers (1 node, 1 to run ansible scripts on)
  • Knowledge of IT security

Installation

This is split up between the node and the script-running ansible machine (alias mgmt-pc).

Node

Required packages:

apt install python

Depending on your linux distribution install python3 instead of python.

Mgmt-PC

Required packages

apt install ansible

Clone prysm-ansible

git clone https://github.com/stefa2k/prysm-ansible.git

Ansible inventory

Create a file in the prysm-ansible directory with the following content (e. g. inventory.eth2.yaml):

all:
  hosts:
    eth2node: # below are the connection settings of the node you want to set up
      ansible_port: 22 # this is the SSH port
      ansible_host: 1.2.3.4 # put your IP here
      ansible_user: deploy # user to log in to your node, needs to have sudo capabilities, or root itself
      ansible_password: secret # user's password

Run your first ansible-playbook

Jump into the prysm-ansible directory. To install docker, prysm-docker-compose & ethdo simply run:

ansible-playbook -i inventory.eth2.yaml docker.yaml eth2node.yaml

This starts geth (ETH1) and after successful syncing also beacon-chain (ETH2).

Clone this wiki locally