Git Product home page Git Product logo

deployment-terraform's Introduction

Deployment Automation

This repository contains ansible+terraform scripts to automate deployment of new networks resembling "POA Network".

Namely, the following operations are performed:

  • Random account is generated for Master of Ceremony (MoC)

  • Bytecode of the Network Consensus Contract is prepared

  • Based on these data, genesis json file is prepared

  • Netstat node is started

  • Several (configurable number) bootnodes are started, bootnodes.txt is exchanged between them.

  • Additionally, some more bootnodes can be started behind a Gateway, forming a publicly accessible RPC endpoint for the network. This endpoint is availble over http, but the user may later assign it a DNS name, generate valid ssl certificates and upload them to the Gateway config, turning this endpoint to https.

  • Explorer node is started.

  • MoC's node is started.

  • Ceremony is performed on the MoC's node, i.e. other consensus contracts are deployed to the network.

  • Several (configurable number) initial keys are generated.

  • Subset (or all) of initial keys are converted into (mining + voting + payout) keys.

  • For a subset (or for all) of converted keys, validator nodes are started.

  • Simple tests can be run against the network: (1) check that txs are getting mined (2) check that all validators mine blocks (only makes sense if validator nodes were started for all mining keys).

  • Artifacts (spec.json, bootnodes.txt, contracts.json, ...) are stored on the MoC's node.

  • hosts file is generated on the user's machine containing ip addresses of all nodes and their respective roles.

Most of the work is done by ansible, but to bring up the infrastructure, ansible calls terraform.

Usage

Currently, only deployment to Azure is supported: Azure deployment README

deployment-terraform's People

Contributors

arseniipetrovich avatar igorbarinov avatar jcdenny avatar lexsys27 avatar natlg avatar phahulin avatar vladimirnovgorodov avatar ykisialiou avatar

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.