infra-status/ansible/inventory
markoburcul 3fdecedd83
inventory: Apply updated terraform script
Update terraform script and apply it to get updated version of ansible
inventory file.

Referenced issue: https://github.com/status-im/infra-template/issues/10

Signed-off-by: markoburcul <marko@status.im>
2024-09-13 11:16:45 +02:00
..
README.md Initial commit 2023-09-08 14:11:02 +02:00
prod inventory: Apply updated terraform script 2024-09-13 11:16:45 +02:00
staging inventory: Apply updated terraform script 2024-09-13 11:16:45 +02:00

README.md

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/beta -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.