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

Data2 #504

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Data2 #504

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
8 changes: 4 additions & 4 deletions ansible/deploy-oonidata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,19 +10,19 @@
ssl_domains:
- "oonidata.ooni.org"

- hosts: shinri.ooni.org
- hosts: data.ooni.org
roles:
- role: base-bullseye
- role: base-bookworm
- role: nftables
- role: nginx-buster
tags: nginx
- role: dehydrated
tags: dehydrated
expand: yes
ssl_domains:
- "shinri.ooni.org"
- "data.ooni.org"
- role: jupyterhub
tags: jupyterhub
ssl_domain: "shinri.ooni.org"
ssl_domain: "data.ooni.org"
- role: datascience
tags: datascience
4 changes: 1 addition & 3 deletions ansible/inventory
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,9 @@ probe-ae1.ooni.org
monitoring.ooni.org
backend-fsn.ooni.org
oonidata.ooni.org
data.ooni.org
backend-hel.ooni.org

[on_cherryservers]
shinri.ooni.org

########################################################################
# location tags

Expand Down
2 changes: 2 additions & 0 deletions ansible/roles/base-bookworm/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
name:
- gpg
- gpg-agent
- dirmngr


- name: Import OONI private repo gpg key
tags: apt
Expand Down
49 changes: 23 additions & 26 deletions ansible/roles/datascience/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,9 @@
- dirmngr

- name: create clickhouse gpg keyring
shell:
cmd: "wget -qO- 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3a9ea1193a97b548be1457d48919f6bd2b48d754' | gpg --dearmor | tee /usr/share/keyrings/clickhouse-keyring.gpg"
shell: "wget -qO- 'https://keyserver.ubuntu.com/pks/lookup?op=get&search=0x3a9ea1193a97b548be1457d48919f6bd2b48d754' | gpg --dearmor | tee /usr/share/keyrings/clickhouse-keyring.gpg"
args:
creates: "/usr/share/keyrings/clickhouse-keyring.gpg"
warn: false

- name: set clickhouse repos
apt_repository:
Expand All @@ -26,8 +25,7 @@
- clickhouse-server={{ clickhouse_pkg_ver }}
- clickhouse-client={{ clickhouse_pkg_ver }}
vars:
clickhouse_pkg_ver: 23.2.*

clickhouse_pkg_ver: 23.5.*

- name: mkdir for clickhouse custom config
file:
Expand All @@ -52,10 +50,9 @@
shell: "{{ conda_bin }}/conda install -c conda-forge pandas numpy altair clickhouse-driver dask scipy scikit-learn catboost pycountry ujson orjson tqdm seaborn requests maxminddb matplotlib lz4 shap msgpack-python beautifulsoup4"

- name: create yarn gpg keyring
shell:
cmd: "wget -qO- https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarn-keyring.gpg"
shell: "wget -qO- https://dl.yarnpkg.com/debian/pubkey.gpg | gpg --dearmor | tee /usr/share/keyrings/yarn-keyring.gpg"
args:
creates: "/usr/share/keyrings/yarn-keyring.gpg"
warn: false

- name: set yarn repos
apt_repository:
Expand All @@ -67,21 +64,21 @@
- yarn

# Apache Superset setup
- name: install apt requirements for superset
apt:
state: present
name:
- build-essential
- python-dev
- libssl-dev
- libffi-dev
- libsasl2-dev
- libldap2-dev
- default-libmysqlclient-dev

- name: install superset with pip
shell: "{{ conda_bin }}/pip install apache-superset

- name: initialize superset DB
shell: "{{ conda_bin }}/superset db upgrade

#- name: install apt requirements for superset
# apt:
# state: present
# name:
# - build-essential
# - python-dev
# - libssl-dev
# - libffi-dev
# - libsasl2-dev
# - libldap2-dev
# - default-libmysqlclient-dev
#
#- name: install superset with pip
# shell: "{{ conda_bin }}/pip install apache-superset"
#
#- name: initialize superset DB
# shell: "{{ conda_bin }}/superset db upgrade"
#