2019-12-08 11:58:43 +00:00
|
|
|
# Infrastructure
|
2019-12-08 12:12:36 +00:00
|
|
|
|
2021-07-11 18:30:59 +01:00
|
|
|
![CI](https://git.theorangeone.net/sys/infrastructure/badges/master/pipeline.svg)
|
2019-12-08 19:33:13 +00:00
|
|
|
|
|
|
|
## Requirements
|
|
|
|
|
|
|
|
- Python 3
|
|
|
|
- Locally configured SSH config (ideally deployed through [dotfiles](https://github.com/realorangeone/dotfiles))
|
2020-06-27 21:27:07 +01:00
|
|
|
- `ansible` installed on the system
|
2019-12-08 19:33:13 +00:00
|
|
|
|
|
|
|
## Installation
|
|
|
|
|
2020-02-22 23:50:40 +00:00
|
|
|
- `./scripts/ansible/setup.sh`
|
|
|
|
- `cd terraform/ && ./scripts/terraform/terraform.sh init`
|
2019-12-08 19:33:13 +00:00
|
|
|
|
|
|
|
### Private Settings
|
|
|
|
|
|
|
|
The ansible vault password needs setting in `ansible/.vault_pass`.
|
|
|
|
|
2020-02-21 18:51:46 +00:00
|
|
|
Terraform configuration needs to be placed in `terraform/secrets.auto.tfvars`.
|
|
|
|
|
2020-02-21 22:33:53 +00:00
|
|
|
Terraform backend secrets need to be placed in `terraform/secrets.sh`.
|
|
|
|
|
2019-12-08 19:33:13 +00:00
|
|
|
## Deploying
|
|
|
|
|
2020-02-22 23:50:40 +00:00
|
|
|
- `./scripts/ansible/deploy.sh`
|
|
|
|
- `./scripts/terraform/terraform.sh apply`
|