How to use the ash.avalanche Ansible collection to provision Avalanche resources.
The complete documentation related to this project starts by the Local Test Network Creation tutorial.
- Python >=3.9 with
venv
module installed - For the local test network:
- 7+GiB of free RAM
- Multipass installed (see Install Multipass)
- Terraform installed (see Install Terraform)
- For filtering outputs:
- jq (see Download jq)
-
Clone the Getting Started repository:
git clone https://github.com/AshAvalanche/ansible-avalanche-getting-started cd ansible-avalanche-collection-getting-started
-
Setup and activate Python venv:
bin/setup.sh source .venv/bin/activate
-
Install the
ash.avalanche
collection:ansible-galaxy collection install git+https://github.com/AshAvalanche/ansible-avalanche-collection.git
-
Initialize the Terraform modules:
terraform -chdir=terraform/multipass init
-
Create the virtual machines that will host the validator nodes using Terraform (enter
yes
when prompted):terraform -chdir=terraform/multipass apply
-
Bootstrap the Avalanche nodes:
ansible-playbook ash.avalanche.bootstrap_local_network -i inventories/local