Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup #498

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions ansible/deploy-api.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,3 @@
- role: ooni-measurements
tags: "api"
ssl_domain: ams-api.ooni.nu

# Commented out because it fails to run due to an old base OS
#- hosts: hkgmetadb.infra.ooni.io
# roles:
# - role: pguser-readonly
# login_user: shovel # FIXME: revoke superuser access from this user :)
# login_password: '{{ shovel_postgres_password }}'
# pg_db: metadb
# pg_name: oomsm-beta
# pg_password: '{{ oomsm_beta_postgres_password }}'
# tags: pg
#
# - role: pguser-readonly
# login_user: shovel # FIXME: revoke superuser access from this user :)
# login_password: '{{ shovel_postgres_password }}'
# pg_db: metadb
# pg_name: amsapi
# pg_password: '{{ metadb_amsapi_password }}'
# tags: pg
1 change: 0 additions & 1 deletion ansible/deploy-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
- "ps2.ooni.io"
- "ps3.ooni.io"
- "ps4.ooni.io"
- role: postgresql11
- role: ooni-backend
ssl_domain: ams-pg.ooni.org

Expand Down
11 changes: 0 additions & 11 deletions ansible/deploy-msg.yml

This file was deleted.

52 changes: 0 additions & 52 deletions ansible/deploy-pipeline-ddl.yml

This file was deleted.

46 changes: 0 additions & 46 deletions ansible/deploy-pipeline.yml
Original file line number Diff line number Diff line change
@@ -1,48 +1,2 @@
---
- import_playbook: ansible-version.yml

- hosts: [datacollector.infra.ooni.io, hkgmetadb.infra.ooni.io, amsmetadb.ooni.nu]
roles:
- docker_py

- hosts: hkgmetadb.infra.ooni.io
gather_facts: false # already gathered
roles:
- role: ooca-cert
ooca_ssl_dir: /srv/pl-psql_ssl/pusher
ooca_ssl_subj: '/O=OONI/OU=Prometheus Pusher/CN=plpsql@{{ inventory_hostname }}'
ooca_group: plpsql
ooca_ca: pusher_ca
tags: [ on-rename, plpsql ]

- hosts: [hkgmetadb.infra.ooni.io, amsmetadb.ooni.nu]
gather_facts: false # already gathered
vars:
ansible_python_interpreter: "/root/venv/bin/python2.7"
roles:
- role: plpsql
tags: plpsql

- hosts: hkgmetadb.infra.ooni.io
gather_facts: false
tasks:
- name: ensure replication user exists
postgresql_user:
login_host: localhost
login_user: shovel
login_password: '{{ shovel_postgres_password }}'
db: metadb # otherwise connection fail
name: amsrepl
password: '{{ amsrepl_hkgmetadb_password }}'
encrypted: true
role_attr_flags: 'REPLICATION,LOGIN'
state: present
tags: plpsql

- hosts: datacollector.infra.ooni.io
gather_facts: false # already gathered
vars:
ansible_python_interpreter: "/root/venv/bin/python2.7"
roles:
- role: airflow
tags: airflow
44 changes: 0 additions & 44 deletions ansible/deploy-postgres-11.yml

This file was deleted.

44 changes: 0 additions & 44 deletions ansible/deploy-prometheus.yml

This file was deleted.

13 changes: 0 additions & 13 deletions ansible/deploy-superset.yml

This file was deleted.

12 changes: 0 additions & 12 deletions ansible/group_vars/all/vars.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,6 @@ passwd:
# - uid [2000, 10000), grouped together by "service"
# - base for next service is `echo $(( 2000 + 50*($RANDOM % 160) ))`
# - login name must be <= 8 chars to be nice to `top` util
afredis: {login: afredis, comment: Airflow Redis}
afpsql: {login: afpsql, comment: Airflow Postgresql}
afsched: {login: afsched, comment: Airflow Scheduler}
afwebsrv: {login: afwebsrv, comment: Airflow Webserver}
afworker: {login: afworker, comment: Airflow Worker}
afflower: {login: afflower, comment: Airflow Celery Flower}

plpsql: {login: plpsql, comment: Pipeline Postgresql} # DONE
plshovel: {login: plshovel, comment: Pipeline Shovel}

nodeexp: {login: nodeexp, comment: Prometheus Node Exporter} # DONE
prometh: {login: prometh, comment: Prometheus Poller}
alertman: {login: alertman, comment: Prometheus Alert Manager}
Expand All @@ -42,8 +32,6 @@ passwd:

piwik: {login: piwik, comment: Piwik user}

grav: {login: grav, comment: Grav user}

prtreg: {login: prtreg, comment: Orchestration Registry}
prtevent: {login: prtevent, comment: Orchestration Events}
prtnotif: {login: prtnotif, comment: Orchestration Notifications}
Expand Down
19 changes: 0 additions & 19 deletions ansible/host_vars/datacollector.infra.ooni.io/.travis.vault

This file was deleted.

18 changes: 0 additions & 18 deletions ansible/host_vars/datacollector.infra.ooni.io/vars.yml

This file was deleted.

35 changes: 0 additions & 35 deletions ansible/host_vars/datacollector.infra.ooni.io/vault

This file was deleted.

2 changes: 1 addition & 1 deletion ansible/host_vars/events.proteus.test.ooni.io/vars.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
adm_logins: [ art, federico, sarath, sbs, nuke ]
adm_logins: [ art, federico, sbs ]
...
2 changes: 1 addition & 1 deletion ansible/host_vars/monitoring.ooni.org/vars.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
adm_logins: [ art, federico, sarath, sbs ]
adm_logins: [ art, federico, sbs ]
ngxprom_scrapers:
- prometheus.infra.ooni.io

Expand Down
7 changes: 0 additions & 7 deletions ansible/host_vars/msg.ooni.io/.travis.vault

This file was deleted.

3 changes: 0 additions & 3 deletions ansible/host_vars/msg.ooni.io/vars.yml

This file was deleted.

8 changes: 0 additions & 8 deletions ansible/host_vars/msg.ooni.io/vault

This file was deleted.

2 changes: 1 addition & 1 deletion ansible/host_vars/notify.proteus.test.ooni.io/vars.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
adm_logins: [ art, federico, sarath, sbs, nuke ]
adm_logins: [ art, federico, sbs ]
...
Loading