Skip to content

Commit

Permalink
Add support for deploying airflow
Browse files Browse the repository at this point in the history
  • Loading branch information
hellais committed Dec 19, 2024
1 parent efc0aef commit 33d2301
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 0 deletions.
8 changes: 8 additions & 0 deletions ansible/deploy-airflow.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
- name: Deploy airflow hosts
hosts:
- data2.htz-fsn.prod.ooni.nu
become: true
roles:
# Comes from https://github.com/idealista/airflow-role
- {"role": "airflow"}
11 changes: 11 additions & 0 deletions ansible/group_vars/airflow/vars.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
airflow_admin_users:
- name: OONI Admin
username: admin
password: "{{ lookup('amazon.aws.aws_ssm', '/oonidevops/secrets/airflow_admin_password', profile='oonidevops_user_prod') }}"
role: Admin
firstname: Open
lastname: Observatory
email: [email protected]
airflow_fernet_key: "{{ lookup('amazon.aws.aws_ssm', '/oonidevops/secrets/airflow_fernet_key', profile='oonidevops_user_prod') }}"
airflow_webserver_secret_key: "{{ lookup('amazon.aws.aws_ssm', '/oonidevops/secrets/airflow_webserver_secret_key', profile='oonidevops_user_prod') }}"
#airflow_executor: "LocalExecutor"
3 changes: 3 additions & 0 deletions ansible/inventory
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ data1.htz-fsn.prod.ooni.nu
data2.htz-fsn.prod.ooni.nu
data3.htz-fsn.prod.ooni.nu

[airflow]
data2.htz-fsn.prod.ooni.nu

## Location tags

[htz_fsn]
Expand Down
7 changes: 7 additions & 0 deletions ansible/requirements.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
- src: willshersystems.sshd
version: v0.25.0
- src: nginxinc.nginx
version: 0.24.3
- src: geerlingguy.certbot
version: 5.2.0
- src: artis3n.tailscale
version: v4.5.0
- src: https://github.com/idealista/clickhouse_role
scm: git
version: 3.5.1
name: idealista.clickhouse_role
- src: https://github.com/ooni/airflow-role.git
scm: git
name: airflow

0 comments on commit 33d2301

Please sign in to comment.