File tree Expand file tree Collapse file tree
roles/ec2/sg_configure/tasks Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -107,6 +107,9 @@ delta-app-services
107107[drake]
108108delta-app-services
109109
110+ [pheidi]
111+ delta-app-services
112+
110113[delta:children]
111114api
112115bastion
@@ -125,6 +128,7 @@ mongodb
125128navi
126129neo4j
127130optimus
131+ pheidi
128132rabbitmq
129133redis
130134redis-slave
Original file line number Diff line number Diff line change @@ -58,6 +58,11 @@ optimus_github_deploy_keys_bucket=runnable.deploykeys.production
5858[palantiri:vars]
5959palantiri_rollbar_key=f675e9090d6f483ca4e742af2c7f2f83
6060
61+ [pheidi:vars]
62+ pheidi_mongo_auth=pheidi:septa-mauve-enquiry-clipper-history
63+ pheidi_mongo_database=delta
64+ pheidi_mongo_replset_name=delta
65+
6166[sauron:vars]
6267sauron_rollbar_key=83157ae2d50d4b6398e404c0b9978d26
6368
Original file line number Diff line number Diff line change @@ -102,6 +102,9 @@ epsilon-app-services
102102[drake]
103103epsilon-app-services
104104
105+ [pheidi]
106+ epsilon-app-services
107+
105108[epsilon:children]
106109api
107110bastion
@@ -122,6 +125,7 @@ neo4j
122125optimus
123126rabbitmq
124127redis
128+ pheidi
125129registry
126130sauron
127131shiva
Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ optimus_github_deploy_keys_bucket=runnable.deploykeys.production-beta
4848[palantiri:vars]
4949palantiri_rollbar_key=f675e9090d6f483ca4e742af2c7f2f83
5050
51+ [pheidi:vars]
52+ pheidi_mongo_auth=api:3f5210b8-8fe3-11e5-8e62-07b6eff19ecb
53+ pheidi_mongo_database=epsilon
54+ pheidi_mongo_replset_name=epsilon
55+
5156[sauron:vars]
5257sauron_rollbar_key=83157ae2d50d4b6398e404c0b9978d26
5358
Original file line number Diff line number Diff line change @@ -103,6 +103,9 @@ gamma-app-services
103103[drake]
104104gamma-app-services
105105
106+ [pheidi]
107+ gamma-app-services
108+
106109[docks]
107110
108111[dock]
@@ -126,6 +129,7 @@ mongodb
126129navi
127130neo4j
128131optimus
132+ pheidi
129133rabbitmq
130134redis
131135redis-slave
139143web
140144worker
141145
142- [ec2 ]
146+ [local ]
143147127.0.0.1
144148
149+ [ec2]
150+ local
151+
145152[targets]
146153localhost ansible_connection =local bastion_name =gamma-bastion
Original file line number Diff line number Diff line change @@ -48,6 +48,11 @@ optimus_github_deploy_keys_bucket=runnable.deploykeys.production-beta
4848[palantiri:vars]
4949palantiri_rollbar_key=f675e9090d6f483ca4e742af2c7f2f83
5050
51+ [pheidi:vars]
52+ pheidi_mongo_auth=api:3f5210b8-8fe3-11e5-8e62-07b6eff19ecb
53+ pheidi_mongo_database=gamma
54+ pheidi_mongo_replset_name=gamma
55+
5156[sauron:vars]
5257sauron_rollbar_key=83157ae2d50d4b6398e404c0b9978d26
5358
Original file line number Diff line number Diff line change @@ -137,6 +137,9 @@ optimus_rollbar_token: a49f9cce09ee46f09df3f603178fba75
137137# palantiri
138138palantiri_rollbar_token : f675e9090d6f483ca4e742af2c7f2f83
139139
140+ # pheidi
141+ pheidi_rollbar_token : 6fc422ac645441bea7f6f14853eb01ab
142+
140143# rabbit
141144rabbit_host_address : " {{ hostvars[groups['rabbitmq'][0]]['ansible_default_ipv4']['address'] }}"
142145rabbit_port : 54321
Original file line number Diff line number Diff line change 1+ name : pheidi
2+
3+ container_image : " registry.runnable.com/runnable/{{ name }}"
4+ container_tag : " {{ git_branch }}"
5+ repo : " git@github.com:CodeNow/{{ name }}.git"
6+ node_version : " 4.2.2"
7+ npm_version : " 2.14.7"
8+
9+ container_envs : >
10+ -e DATADOG_HOST={{ datadog_host_address }}
11+ -e DATADOG_PORT={{ datadog_port }}
12+ -e DOMAIN={{ domain }}
13+ -e LOGGLY_TOKEN="{{ loggly_token }}"
14+ -e NODE_ENV="{{ node_env }}"
15+ -e FULL_API_DOMAIN=https://api.{{ domain }}
16+ -e RABBITMQ_HOSTNAME="{{ rabbit_host_address }}"
17+ -e RABBITMQ_PASSWORD="{{ rabbit_password }}"
18+ -e RABBITMQ_PORT="{{ rabbit_port }}"
19+ -e RABBITMQ_USERNAME="{{ rabbit_username }}"
20+ -e ROLLBAR_KEY={{ pheidi_rollbar_token }}
21+ {% if node_env != "production-epsilon" %} -e MONGO_CACERT=/opt/ssl/mongo-client/ca.pem {% endif %}
22+ {% if node_env != "production-epsilon" %} -e MONGO_CERT=/opt/ssl/mongo-client/cert.pem {% endif %}
23+ {% if node_env != "production-epsilon" %} -e MONGO_KEY=/opt/ssl/mongo-client/key.pem {% endif %}
24+ -e MONGO_REPLSET_NAME={{ pheidi_mongo_replset_name }}
25+ -e MONGO=mongodb://{{ pheidi_mongo_auth }}@{{ mongo_hosts }}/{{ pheidi_mongo_database }}
26+ -e USER_CONTENT_DOMAIN={{ user_content_domain }}
27+ -e WEB_URL=https://app.{{ domain }}
28+
29+ container_run_opts : >
30+ -h {{ name }}
31+ -d
32+ -v /opt/ssl/mongodb-client:/opt/ssl/mongo-client:ro
33+ {{ container_envs }}
Original file line number Diff line number Diff line change 1+ ---
2+ - hosts : consul
3+ - hosts : mongodb
4+ - hosts : rabbitmq
5+
6+ - hosts : pheidi
7+ vars_files :
8+ - group_vars/alpha-pheidi.yml
9+ roles :
10+ - role : notify
11+ rollbar_token : " {{ pheidi_rollbar_token }}"
12+ tags : [ notify ]
13+ - { role: builder, tags: [build] }
14+ - { role: tls-client, tls_service: mongodb, tags: [ tls ] }
15+ - { role: container_kill_start }
Original file line number Diff line number Diff line change 197197 from_port : 27000
198198 to_port : 27020
199199 group_id : " {{ sg_dock_services }}"
200+ - proto : tcp
201+ from_port : 27000
202+ to_port : 27020
203+ group_id : " {{ sg_app_services }}"
200204
201205- name : Navi SG
202206 tags :
You can’t perform that action at this time.
0 commit comments