Giter Club home page Giter Club logo

parity-ansible-poa's Introduction

ansible deployment of a parity PoA network

This playbook will deploy 3 nodes, running in docker, on a remote host after pulling the latest parity-ethereum source from gitlab and building a new image on top of rust:1.29.1-slim-stretch.

Tested on a fresh Google Cloud debian stretch box with Ansible 2.6.5.

Only requirements are debian, having your pubkey on the system, allowing ssh traffic, and creating an ingress firewall rule for port 3001 (for the ethstats dashboard). Ansible hosts file uses this group.

# /etc/ansible/hosts
[GCEtest]

You can run the playbook like this: ansible-playbook site.yml -f 10 -u <remote user>

It comprises of two roles, "common" and "authority". The common role takes care of docker/other packages installation and the authority role handles the setup of the authority network. After the playbook runs, the ethstats dashboard should be accessible at your.ip:3001. This is admittedly of limited use for a PoA network, but there's a recent fork of the project that has PoA features on its roadmap, so that's something to keep an eye on.

Note: it is recommended to change the ownership of the /code directory created in roles/common/main.yml to something other than root.

Inexhaustive List of Future TODO:

  • trigger new docker build on code change
  • support other distributions besides debian
  • run as parity user rather than root inside container
  • avoid using --unsafe-expose
  • create more PoA-specific monitoring
  • improve and flesh out the configuration structure
  • use templates for parity configuration
  • use var files for simple ansible configuration
  • add dynamic node names
  • bootstrap parity nodes in a more configurable, native way

parity-ansible-poa's People

Contributors

lovelaced avatar

Watchers

 avatar

Forkers

peachwaravich

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.