-
Notifications
You must be signed in to change notification settings - Fork 10
Deploy check in to prod #246
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
base: main
Are you sure you want to change the base?
Conversation
Terraform Run Output 🤖Format and Style 🖌
|
Pusher | @LDiazN |
Action | pull_request |
Environment | dev |
Workflow | .github/workflows/check_terraform.yml |
Last updated | Mon, 26 May 2025 11:08:33 GMT |
Ansible Run Output 🤖Ansible Playbook Recap 🔍
Ansible playbook output 📖
|
Pusher | @LDiazN |
Action | pull_request |
Working Directory | |
Workflow | .github/workflows/check_ansible.yml |
Last updated | Mon, 26 May 2025 11:09:04 GMT |
@@ -13,7 +13,7 @@ | |||
tls_cert_dir: /var/lib/dehydrated/certs | |||
- role: clickhouse_proxy | |||
vars: | |||
clickhouse_url: "clickhouse3.prod.ooni.io" | |||
clickhouse_url: "{{'clickhouse1.prod.ooni.io' if inventory_hostname == 'clickhouseproxy.prod.ooni.io' else 'clickhouse3.prod.ooni.io'}}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if should be using dev
and prod
groups to specify these urls differently
@@ -15,6 +15,8 @@ nftables_clickhouse_allow: | |||
ip: 5.9.112.244 | |||
- fqdn: clickhouseproxy.dev.ooni.io | |||
ip: "{{ lookup('dig', 'clickhouseproxy.dev.ooni.io/A') }}" | |||
- fqdn: clickhouseproxy.prod.ooni.io | |||
ip: "{{ lookup('dig', 'clickhouseproxy.prod.ooni.io/A') }}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above, even moreso important here, since ideally we would not allow access to the production clickhouse from the dev environment
This PR provides the necessary set up to deploy check-in to prod, including:
clickhouseproxy.prod.ooni.io
to data1deploy-clickhouse-proxy.yml
role depending on the host (prod or dev)We still need to point the load balancer to the right service but I would rather do that when we already tested these things
closes #227