Skip to content

Added ability to deploy to marketing again #607

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 2 commits into from
Mar 3, 2017
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
3 changes: 3 additions & 0 deletions ansible/delta-hosts/hosts
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ delta-rabbit
[web]
delta-app-services

[marketing]
delta-app-services

[metabase]
delta-metabase

Expand Down
5 changes: 5 additions & 0 deletions ansible/delta-hosts/variables
Original file line number Diff line number Diff line change
Expand Up @@ -148,6 +148,11 @@ vault_aws_access_key_id=AKIAJ7R4UIM45KH2WGWQ
vault_aws_secret_key=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
vault_aws_region=us-east-1

[marketing:vars]
marketing_bucket=runnable.com
marketing_aws_access_key=AKIAIPPPY2JIOHX7QVCA
marketing_aws_secret_key=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
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that is how we do this? keep them in devops?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yup


[delta:vars]
ansible_ssh_private_key_file=~/.ssh/delta.pem
api_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af
Expand Down
3 changes: 3 additions & 0 deletions ansible/gamma-hosts/hosts
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,9 @@ gamma-rabbit
[web]
gamma-app-services

[marketing]
gamma-app-services

[redis]
gamma-redis

Expand Down
5 changes: 5 additions & 0 deletions ansible/gamma-hosts/variables
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,11 @@ vault_aws_access_key_id=AKIAJ7R4UIM45KH2WGWQ
vault_aws_secret_key=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
vault_aws_region=us-east-1

[marketing:vars]
marketing_bucket=runnable-gamma.com
marketing_aws_access_key=AKIAICIWKIZEQCMDXLEA
marketing_aws_secret_key=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

[gamma:vars]
ansible_ssh_private_key_file=~/.ssh/gamma.pem
api_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af
Expand Down
7 changes: 4 additions & 3 deletions ansible/group_vars/alpha-marketing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ do_not_push: yes

dockerfile_enviroment: [
"API_URL https://{{ api_hostname }}",
"AWS_ACCESS_KEY {{ aws_access_key }}",
"AWS_SECRET_KEY {{ aws_secret_key }}",
"AWS_ACCESS_KEY {{ marketing_aws_access_key }}",
"AWS_SECRET_KEY {{ marketing_aws_secret_key }}",
"ANGULAR_URL {{ angular_url }}",
"AWS_BUCKET {{ domain }}",
"AWS_BUCKET {{ marketing_bucket }}",
"AWS_REGION {{ web_aws_bucket_region | default('us-standard') }}",
"NODE_ENV {{ node_env }}"
]

Expand Down
2 changes: 1 addition & 1 deletion ansible/marketing.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
---
- hosts: web
- hosts: marketing
vars_files:
- "group_vars/alpha-marketing.yml"
roles:
Expand Down