-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Split playbooks into tiers * Add support for clickhouse cluster monitoring
- Loading branch information
Showing
20 changed files
with
374 additions
and
217 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
--- | ||
- name: Deploy oonidata clickhouse hosts | ||
hosts: | ||
- notebook.ooni.org | ||
- data1.htz-fsn.prod.ooni.nu | ||
#- data2.htz-fsn.prod.ooni.nu | ||
- data3.htz-fsn.prod.ooni.nu | ||
become: true | ||
tags: | ||
- clickhouse | ||
roles: | ||
- prometheus_node_exporter | ||
- oonidata_clickhouse |
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,12 @@ | ||
--- | ||
- name: Update monitoring config | ||
hosts: monitoring.ooni.org | ||
become: true | ||
tags: | ||
- monitoring | ||
roles: | ||
- prometheus | ||
- prometheus_blackbox_exporter | ||
- prometheus_alertmanager | ||
|
||
|
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,19 @@ | ||
--- | ||
- name: Include monitoring playbook | ||
ansible.builtin.import_playbook: deploy-monitoring.yml | ||
|
||
- name: Include clickhouse playbook | ||
ansible.builtin.import_playbook: deploy-clickhouse.yml | ||
|
||
- name: Deploy oonidata worker nodes | ||
hosts: | ||
- data1.htz-fsn.prod.ooni.nu | ||
become: true | ||
tags: | ||
- oonidata_worker | ||
roles: | ||
- oonidata | ||
vars: | ||
enable_jupyterhub: false | ||
enable_oonipipeline_worker: true | ||
clickhouse_url: "clickhouse://write:{{ lookup('amazon.aws.aws_ssm', '/oonidevops/secrets/clickhouse_write_password', profile='oonidevops_user_prod') | hash('sha256') }}@clickhouse1.prod.ooni.io/ooni" |
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,25 @@ | ||
--- | ||
- name: Setup OpenVPN server | ||
hosts: openvpn-server1.ooni.io | ||
become: true | ||
remote_user: root | ||
roles: | ||
- ssh_users | ||
|
||
- name: Deploy notebook host | ||
hosts: notebook.ooni.org | ||
become: true | ||
tags: | ||
- notebook | ||
vars: | ||
enable_oonipipeline_worker: false | ||
roles: | ||
- oonidata | ||
|
||
# commented out due to the fact it requires manual config of ~/.ssh/config | ||
#- name: Setup codesign box | ||
# hosts: codesign-box | ||
# become: true | ||
# remote_user: ubuntu | ||
# roles: | ||
# - codesign_box |
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
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 |
---|---|---|
@@ -1,32 +1,24 @@ | ||
[all] | ||
# This requires manual setup of ~/.ssh/config | ||
#codesign-box | ||
[all:children] | ||
htz-fsn | ||
ghs-ams | ||
|
||
[prod] | ||
data.ooni.org | ||
oonidata.ooni.org | ||
monitoring.ooni.org | ||
openvpn-server1.ooni.io | ||
notebook.ooni.org | ||
data1.htz-fsn.prod.ooni.nu | ||
data2.htz-fsn.prod.ooni.nu | ||
data3.htz-fsn.prod.ooni.nu | ||
|
||
[dev] | ||
oonidatatest.ooni.nu | ||
## Role tags | ||
|
||
[clickhouse] | ||
notebook.ooni.org | ||
data1.htz-fsn.prod.ooni.nu | ||
data2.htz-fsn.prod.ooni.nu | ||
data3.htz-fsn.prod.ooni.nu | ||
|
||
[have_node_exporter] | ||
## Location tags | ||
|
||
[htz-fsn] | ||
data.ooni.org | ||
oonidata.ooni.org | ||
openvpn-server1.ooni.io | ||
monitoring.ooni.org | ||
notebook.ooni.org | ||
data1.htz-fsn.prod.ooni.nu | ||
data2.htz-fsn.prod.ooni.nu | ||
data3.htz-fsn.prod.ooni.nu | ||
oonidatatest.ooni.nu | ||
|
||
[ghs-ams] | ||
openvpn-server1.ooni.io |
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
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 @@ | ||
nginx_user: nginx |
Oops, something went wrong.