-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add support for persistent data volume (#2)
* add basic readme file * also fix deploy checks when a branch lands on master, since it fails because the comment script doesn't have in it the reference to the open PR number
- Loading branch information
Showing
5 changed files
with
87 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
# OONI Devops | ||
|
||
This repository contains the code necessary for managing the OONI | ||
infrastructure as code and all the necessary tooling for day to day operations | ||
of it. | ||
|
||
## Setup | ||
|
||
* Install [terraform](https://developer.hashicorp.com/terraform/install) | ||
* Install [ansible](https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html) | ||
|
||
## Using | ||
|
||
For most up to date information, always look at the github workflow. | ||
|
||
You should have setup the following environment variables: | ||
``` | ||
AWS_ACCESS_KEY_ID=XXXX | ||
AWS_SECRET_ACCESS_KEY=YYYY | ||
TF_VAR_aws_access_key_id=XXX | ||
TF_VAR_aws_secret_access_key=YYYY | ||
TF_VAR_datadog_api_key=ZZZZ | ||
``` | ||
|
||
### Deploying IaC | ||
|
||
``` | ||
cd tf/environments/production/ | ||
terraform plan | ||
``` | ||
|
||
Check the plan looks good, then apply: | ||
|
||
``` | ||
terraform apply | ||
``` | ||
|
||
This will update the ansible inventory file. | ||
|
||
### Deploying Configuration | ||
|
||
You can now run: | ||
``` | ||
ansible-playbook -i inventory.ini --check --diff playbook.yml | ||
``` | ||
|
||
And the apply it with: | ||
|
||
``` | ||
ansible-playbook -i inventory.ini playbook.yml | ||
``` | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ clickhouse.tier1.prod.ooni.nu | |
|
||
[clickhouse_servers] | ||
clickhouse.tier1.prod.ooni.nu | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters