Guide to deploying the infrastructure required for Blockscout using Ansible and Terraform.
hosts
file from hosts.example
(mv hosts.example hosts
) and adjust to your needs. Each host should represent each BlockScout instance you want to deploy.
hosts
file with one BlockScout instance will look like:
[group]
is a group name, which will be interpreted as a prefix
for all created resources and host
is a name of BlockScout instance.
4) For each host merge infrastructure.yml.example
and all.yml.example
config template files in host_vars
folder into single config file with the same name as in hosts
file:
infrastructure.yml.example
and all.yml.example
config template files in group_vars
folder into single config file with the same name as group name in hosts
file:
group_vars
and host_vars
.
group_vars/all.yml
file.
ansible-playbook deploy_infra.yml