Skip to content

Add Ansible and Jenkins necessities for deploying the staging api proxy signal match list #599

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

Merged
merged 7 commits into from
Dec 3, 2020
Merged
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
1 change: 1 addition & 0 deletions Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ pipeline {
}
parallel deploy_staging
}
sh "jenkins/ansible-deploy-staging-api-proxy-match-list"
}
}
stage('Deploy production') {
Expand Down
14 changes: 14 additions & 0 deletions ansible/ansible-deploy-staging-api-proxy-match-list.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
---
- hosts: api_proxy_staging
remote_user: deploy
vars_files:
- vars.yaml
- vault.yaml
tasks:
- name: Set staging api proxy openresty signal match list template.
template:
src: templates/staging-api-match-list.j2
dest: "/common/staging-api-match-list"
owner: "root"
group: "root"
mode: 0600
3 changes: 3 additions & 0 deletions ansible/inventory
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,6 @@ delphi-master-prod-01.delphi.cmu.edu

[runtime_host_staging]
app-mono-dev-01.delphi.cmu.edu

[api_proxy_staging]
api-staging.delphi.cmu.edu
4 changes: 4 additions & 0 deletions ansible/templates/staging-api-match-list.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
data_source=quidel-staging&signal=covid_ag_
data_source=chng
data_source=safegraph
data_source=google-symptoms