infrastructure/README.md
2021-07-11 18:30:59 +01:00

27 lines
718 B
Markdown

# Infrastructure
![CI](https://git.theorangeone.net/sys/infrastructure/badges/master/pipeline.svg)
## Requirements
- Python 3
- Locally configured SSH config (ideally deployed through [dotfiles](https://github.com/realorangeone/dotfiles))
- `ansible` installed on the system
## Installation
- `./scripts/ansible/setup.sh`
- `cd terraform/ && ./scripts/terraform/terraform.sh init`
### Private Settings
The ansible vault password needs setting in `ansible/.vault_pass`.
Terraform configuration needs to be placed in `terraform/secrets.auto.tfvars`.
Terraform backend secrets need to be placed in `terraform/secrets.sh`.
## Deploying
- `./scripts/ansible/deploy.sh`
- `./scripts/terraform/terraform.sh apply`