mirror of
https://github.com/status-im/infra-nimbus.git
synced 2025-01-24 20:49:43 +00:00
e71d1643b8
- build with "-d:noSignalHandler" in NIMFLAGS - keep binary copies for a week, so we can use them with core dumps on target hosts - finish replacing "item.branch" with "item.version" - manually add a [nimbus-master] section to "ansible/inventory/test"
Description
The files here are Ansible inventory files generated by ansible/terraform.py
.
Their purpose is an emergency inventory backup in case of failure or unavailability of Consul.
Usage
To use simply provide the file for the given stage using the -i
argument.
For example, if you want to run Ansible on mailservers of eth.test
fleet while Consul is unavailable do:
ansible-playbook ansible/main.yml -i ansible/inventory/test -l mail
Terraform Backup
In addition to the Ansible inventory files the ansible/terraform.py
script also stores the last seen Terraform inventory under .terraform/terraform.tfstate.backup
.
So if ever Consul KV store is lost, it can be recovered from this copy.
Details
For more details on how Ansible and Terraform interact read this article.