-
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.
Work towards production deployment of data pipeline v5
* Make use of clickhouse idealista role * Refactor nftables role * Tighten up ssh users related configuration * Improve the bootstrap host playbook
- Loading branch information
Showing
21 changed files
with
190 additions
and
90 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 |
---|---|---|
|
@@ -23,7 +23,7 @@ ssh_users: | |
keys: | ||
- "ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAACAQDBXprrutdT6AhrV9hWBKjyzq6RqGmCBWpWxi3qwJyRcBJfkiEYKV9QWl3H0g/Sg9JzLd9lWG2yfAai7cyBAT4Ih0+OhwQ0V7wkhBn4YkNjs7d4BGPHjuLIywS9VtmiyH7VafikMjmqPLL/uPBIbRrx9RuSfLkAuN9XFZpVmqzWY8ePpcRCvnG6ucPxEY8o+4j5nfTrgxSaIT31kH16/PFJe07tn1SZjxZE4sZTz/p9xKt6s8HXmlP3RdnXSpXWmH8ZwYDrNhkcH8m6mC3giiqSKThFdwvQVflRRvn9pAlUOhy6KIBtAt1KobVJtOCPrrkcLhQ1C+2P9wKhfYspCGrScFGnrUqumLxPpwlqILxJvmgqGAtkm8Ela9f2D9sEv8CUv5x9XptZKlyRhtOLixvLYoJlwfXXnmXa8T1pg8+4063BhHUOu/bg0InpSp3hdscOfk0R8FtDlXnn6COwbPXynIt4PxzIxD/WQhP0ymgH3ky6ClB5wRBVhOqYvxQw32n2QFS9A5ocga+nATiOE7BTOufgmDCA/OIXfJ/GukXRaMCBsvlx7tObHS1LOMt0I+WdoOEjI0ARUrFzwoiTrs9QYmd922e7S35EnheT3JjnCTjebJrCNtwritUy8vjsN/M27wJs7MAXleT7drwXXnm+3xYrH+4KQ+ru0dxMe1zfBw== [email protected]" | ||
|
||
admin_usernames: [ art, majakomel, mehul, norbel ] | ||
admin_usernames: [ art, mehul ] | ||
root_usernames: [ art, mehul ] | ||
non_admin_usernames: [ agrabeli ] | ||
deactivated_usernames: [ sbs, federico, sarath ] | ||
non_admin_usernames: [ ] | ||
deactivated_usernames: [ sbs, federico, sarath ] |
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 +1,3 @@ | ||
prometheus_metrics_password: "{{ lookup('amazon.aws.aws_secret', 'oonidevops/ooni_services/prometheus_metrics_password', profile='oonidevops_user_dev') }}" | ||
prometheus_metrics_password: "{{ lookup('amazon.aws.aws_secret', 'oonidevops/ooni_services/prometheus_metrics_password', profile='oonidevops_user_dev') }}" | ||
admin_usernames: [ art, mehul, norbel, majakomel ] | ||
non_admin_usernames: [ agrabeli ] |
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 +1,3 @@ | ||
prometheus_metrics_password: "{{ lookup('amazon.aws.aws_secret', 'oonidevops/ooni_services/prometheus_metrics_password', profile='oonidevops_user_prod') }}" | ||
prometheus_metrics_password: "{{ lookup('amazon.aws.aws_secret', 'oonidevops/ooni_services/prometheus_metrics_password', profile='oonidevops_user_prod') }}" | ||
admin_usernames: [ art, mehul ] | ||
non_admin_usernames: [ ] |
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 @@ | ||
non_admin_usernames: [ ] |
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 |
---|---|---|
|
@@ -4,5 +4,4 @@ | |
hosts: all | ||
remote_user: root | ||
roles: | ||
- ssh_users | ||
- bootstrap |
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 |
---|---|---|
|
@@ -22,6 +22,7 @@ | |
- man-db | ||
- mtr | ||
- net-tools | ||
- nvme-cli | ||
- openssl | ||
- python3-passlib | ||
- rsync | ||
|
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,10 @@ | ||
nft_rules_tcp: | ||
- name: 22 | ||
rules: | ||
- add rule inet filter input tcp dport 22 counter accept comment "Incoming SSH" | ||
#- name: 80 | ||
# rules: | ||
# - add rule inet filter input tcp dport 80 counter accept comment "incoming HTTP" | ||
#- name: 443 | ||
# rules: | ||
# - add rule inet filter input tcp dport 443 counter accept comment "incoming HTTPS" |
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 |
---|---|---|
|
@@ -38,4 +38,3 @@ include "/etc/ooni/nftables/tcp/*.nft" | |
|
||
# Configure any other rule | ||
include "/etc/ooni/nftables/*.nft" | ||
|
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,4 @@ | ||
{{ ansible_managed | comment }} | ||
{% for entry in rules %} | ||
{{ entry }} | ||
{% endfor %} |
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
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,6 @@ | ||
--- | ||
dependencies: | ||
- geerlingguy.certbot | ||
- src: idealista.clickhouse_role | ||
scm: git | ||
version: 3.5.1 |
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,5 @@ | ||
- ansible.builtin.include_role: | ||
name: idealista.clickhouse_role | ||
tags: | ||
- 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 |
---|---|---|
|
@@ -89,3 +89,24 @@ | |
- oonidata | ||
- jupyterhub | ||
- config | ||
|
||
- ansible.builtin.include_role: | ||
name: nginx | ||
tags: | ||
- oonidata | ||
- nginx | ||
|
||
- ansible.builtin.include_role: | ||
name: geerlingguy.certbot | ||
tags: | ||
- oonidata | ||
- certbot | ||
vars: | ||
certbot_admin_email: [email protected] | ||
certbot_create_extra_args: "" | ||
certbot_create_if_missing: true | ||
certbot_create_standalone_stop_services: | ||
- nginx | ||
certbot_certs: | ||
- domains: | ||
- "{{ inventory_hostname }}" |
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 |
---|---|---|
|
@@ -22,34 +22,9 @@ | |
- oonidata | ||
- jupyterhub | ||
|
||
- ansible.builtin.include_role: | ||
name: nginx | ||
tags: | ||
- oonidata | ||
- nginx | ||
|
||
- ansible.builtin.include_role: | ||
name: geerlingguy.certbot | ||
tags: | ||
- oonidata | ||
- certbot | ||
vars: | ||
certbot_admin_email: [email protected] | ||
certbot_create_extra_args: "" | ||
certbot_create_if_missing: true | ||
certbot_create_standalone_stop_services: | ||
- nginx | ||
certbot_certs: | ||
- domains: | ||
- "{{ inventory_hostname }}" | ||
|
||
- name: Install oonipipeline requirements | ||
- name: Install apt packages | ||
ansible.builtin.apt: | ||
name: | ||
- net-tools | ||
- curl | ||
- git | ||
- socat | ||
name: "{{ apt_packages }}" | ||
tags: | ||
- oonidata | ||
- oonipipeline | ||
|
@@ -87,7 +62,14 @@ | |
- oonidata | ||
- oonipipeline | ||
|
||
- ansible.builtin.import_tasks: clickhouse.yml | ||
when: enable_clickhouse | ||
tags: | ||
- oonidata | ||
- clickhouse | ||
|
||
- name: Write oonidataproxy service | ||
when: enable_oonidata_proxy | ||
ansible.builtin.template: | ||
src: oonidata-proxy.service.j2 | ||
dest: "/etc/systemd/system/oonidata-proxy.service" | ||
|
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