Skip to content

Commit a799466

Browse files
committed
adding more vars
1 parent e17da95 commit a799466

7 files changed

Lines changed: 33 additions & 3 deletions

File tree

ansible/big-poppa-http.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
- hosts: rabbitmq
33
- hosts: consul
4+
- hosts: mongodb
5+
- hosts: github-varnish
46

57
- hosts: big-poppa
68
vars_files:
@@ -10,4 +12,4 @@
1012
rollbar_token: "{{ big_poppa_http_rollbar_token }}"
1113
tags: [ notify ]
1214
- { role: builder, tags: [ build ] }
13-
- { role: container_start }
15+
- { role: container_kill_start }

ansible/big-poppa-worker.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22
- hosts: rabbitmq
33
- hosts: consul
4+
- hosts: mongodb
5+
- hosts: github-varnish
46

57
- hosts: big-poppa
68
vars_files:
@@ -10,4 +12,4 @@
1012
rollbar_token: "{{ big_poppa_worker_rollbar_token }}"
1113
tags: [ notify ]
1214
- { role: builder, tags: [ build ] }
13-
- { role: container_start }
15+
- { role: container_kill_start }

ansible/gamma-hosts/variables

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,15 @@ api_s3_context_bucket=runnable.context.resources.production-beta
1515
[big-poppa:vars]
1616
big_poppa_pg_pass=JFmZDuVYPt9vUxk4DBjj
1717
big_poppa_pg_host=gamma-big-poppa.cnksgdqarobf.us-west-2.rds.amazonaws.com:32659
18+
big_poppa_pg_port=32659
1819
big_poppa_github_token=e11a1264130fb62ce045bf03118bf123f980c205
1920
big_poppa_http_rollbar_token=1f1eeea0b1334aaeb50fb7bc4a43241a
2021
big_poppa_worker_rollbar_token=98cabb8440024e3a8242cf3220b802c9
2122
big_poppa_intercom_api_key=92d281df5653eb72f8f4b322cf0689be893d4965
2223
big_poppa_intercom_app_id=xs5g95pd
24+
big_poppa_mongo_auth=api:3f5210b8-8fe3-11e5-8e62-07b6eff19ecb
25+
big_poppa_mongo_database=gamma
26+
big_poppa_mongo_replset_name=gamma-rs0
2327

2428
[docks:vars]
2529
docker_config=docks

ansible/group_vars/all.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,8 @@ navi_mongo_database: navi
167167
navi_mongo_host_address: "{{ hostvars[groups['mongo-navi'][0]]['ansible_default_ipv4']['address'] }}"
168168
navi_mongo_port: 27017
169169

170+
npm_token: c76363e9-78e0-4667-82ac-e2ac01efcfe2
171+
170172
# local-vault
171173
vault_local_port: 31836
172174
vault_addr: http://127.0.0.1:{{ vault_local_port }}

ansible/group_vars/alpha-big-poppa-http.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ repo: "git@github.com:CodeNow/big-poppa.git"
77
node_version: 4.4.7
88
npm_version: 2
99

10+
dockerfile_enviroment: [
11+
"NPM_TOKEN {{ npm_token }}"
12+
]
1013
# for container settings
1114
container_envs: >
1215
-e DATADOG_HOST={{ datadog_host_address }}
@@ -16,12 +19,22 @@ container_envs: >
1619
-e INTERCOM_API_KEY={{ big_poppa_intercom_key | default('undefined') }}
1720
-e INTERCOM_APP_ID={{ big_poppa_intercom_id | default('undefined') }}
1821
-e NODE_ENV={{ node_env }}
22+
-e PGUSER={{ big_poppa_pg_user }}
23+
-e PGPASSWORD={{ big_poppa_pg_pass }}
24+
-e PGHOST={{ big_poppa_pg_host }}
25+
-e PGPORT={{ big_poppa_pg_port }}
26+
-e PGDATABASE={{ big_poppa_pg_database }}
1927
-e POSTGRES_CONNECT_STRING=postgres://{{ big_poppa_pg_user }}:{{ big_poppa_pg_pass }}@{{ big_poppa_pg_host }}/{{ big_poppa_pg_database }}
2028
-e RABBITMQ_HOSTNAME={{ rabbit_host_address }}
2129
-e RABBITMQ_PASSWORD={{ rabbit_password }}
2230
-e RABBITMQ_PORT={{ rabbit_port }}
2331
-e RABBITMQ_USERNAME={{ rabbit_username }}
2432
-e ROLLBAR_KEY={{ big_poppa_http_rollbar_token }}
33+
-e MONGO=mongodb://{{ big_poppa_mongo_auth }}@{{ mongo_hosts }}/{{ big_poppa_mongo_database }}
34+
-e MONGO_REPLSET_NAME={{ big_poppa_mongo_replset_name }}
35+
-e GITHUB_VARNISH_HOST={{ github_varnish_host }}
36+
-e GITHUB_VARNISH_PORT={{ github_varnish_port }}
37+
-e GITHUB_PROTOCOL=http
2538
2639
container_run_opts: >
2740
-h {{ name }}

ansible/group_vars/alpha-big-poppa-worker.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ repo: "git@github.com:CodeNow/big-poppa.git"
66
node_version: 4.4.7
77
npm_version: 2
88

9+
dockerfile_enviroment: [
10+
"NPM_TOKEN {{ npm_token }}"
11+
]
912
# for container settings
1013
container_envs: >
1114
-e DATADOG_HOST={{ datadog_host_address }}
@@ -20,6 +23,11 @@ container_envs: >
2023
-e RABBITMQ_PORT={{ rabbit_port }}
2124
-e RABBITMQ_USERNAME={{ rabbit_username }}
2225
-e ROLLBAR_KEY={{ big_poppa_worker_rollbar_token }}
26+
-e MONGO=mongodb://{{ big_poppa_mongo_auth }}@{{ mongo_hosts }}/{{ big_poppa_mongo_database }}
27+
-e MONGO_REPLSET_NAME={{ big_poppa_mongo_replset_name }}
28+
-e GITHUB_VARNISH_HOST={{ github_varnish_host }}
29+
-e GITHUB_VARNISH_PORT={{ github_varnish_port }}
30+
-e GITHUB_PROTOCOL=http
2331
2432
container_run_opts: >
2533
-h {{ name }}

ansible/stage-hosts/hosts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ delta-staging-data
1717
[stage:children]
1818
dock
1919
docks
20-
rabbitmq
2120
redis
2221
vault
2322
consul

0 commit comments

Comments
 (0)