Links

Ansible Role

In order to automate deployment and configuration of nodes, we provide Ansible Role which is used to deploy binary to target virtual machines.

Pre-requisites

  • Ansible installed
  • Experience with Ansible assumed in this article

Setup

Additional information is available in the repository README.

Requirements

Add the following to the requirements.yml file.
# check latest version in repository, setup/variables may change between releases
roles:
- name: substrate_deployer
src: https://github.com/digitalnativeinc/ansible-role-substrate-deployer.git
version: 0.x.x

Install the role

ansible-galaxy install -r requirements.yml

Setup playbook

Full list of variables available in README.
validator.yml
- hosts: <target-inventory>
roles:
- substrate_deployer
vars:
substrate_node_version: latest
substrate_node_validator: true
substrate_node_logging: file
substrate_node_friendly_name: Standard Validator

Run playbook

For help with command use ansible-playbook --help.