Skip to content

Commit 3b13f3c

Browse files
authored
Merge pull request #691 from CodeNow/add-customerbot
Add customerbot
2 parents 4f97f19 + a1ed5ea commit 3b13f3c

6 files changed

Lines changed: 94 additions & 0 deletions

File tree

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ It is the custom at Runnable to play a song to the entire team when deploying. F
126126
| charon | [Enter Sandman - Metallica](https://www.youtube.com/watch?v=CD-E-LDc384) |
127127
| clio | [Billy Joel - We Didn't Start the Fire](https://www.youtube.com/watch?v=eFTLKWw542g) |
128128
| cream | [C.R.E.A.M. - Wu-Tang Clan](https://www.youtube.com/watch?v=PBwAxmrE194) |
129+
| customerbot | [Trailer Park Boys Theme](https://www.youtube.com/watch?v=dI6Drn3OA70) |
129130
| deployer | [Roll our](https://www.youtube.com/watch?v=t21DFnu00Dc) |
130131
| detention | [Unbreakable Kimmy Schmidt](https://youtu.be/CV9xF8CjhJk?t=21s) |
131132
| docker-listener | [Call Me Maybe - Carly Rae Jepsen](https://www.youtube.com/watch?v=fWNaR-rxAic) |

ansible/customerbot.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
- hosts: customerbot
3+
vars_files:
4+
- group_vars/alpha-customerbot.yml
5+
roles:
6+
- role: notify
7+
8+
- role: builder
9+
10+
- role: k8-deployment
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: customerbot
2+
3+
inject_ca: false
4+
repo: "git@github.com:CodeNow/{{ name }}.git"
5+
node_version: "6.11.0"
6+
7+
dockerfile_enviroment: [
8+
"NPM_TOKEN {{ npm_token }}"
9+
]
10+
11+
dockerfile_pre_install_commands: [
12+
"echo '//registry.npmjs.org/:_authToken=${NPM_TOKEN}' > .npmrc"
13+
]
14+
15+
container_envs:
16+
- name: APP_NAME
17+
value: "{{ customerbot_app_name }}"
18+
- name: BIG_POPPA_HOST
19+
value: "http://{{ big_poppa_host_address }}:{{ big_poppa_port }}"
20+
- name: BOT_API_KEY
21+
value: "{{ customerbot_bot_api_key }}"
22+
- name: DATADOG_API_KEY
23+
value: "{{ customerbot_datadog_api_key }}"
24+
- name: DATADOG_APP_KEY
25+
value: "{{ customerbot_datadog_app_key }}"
26+
- name: GITHUB_ACCESS_TOKEN
27+
value: "{{ customerbot_github_access_token }}"
28+
- name: INTERCOM_APP_API_KEY
29+
value: "{{ customerbot_intercom_api_key }}"
30+
- name: INTERCOM_APP_ID
31+
value: "{{ customerbot_intercom_app_id }}"
32+
- name: JIRA_PASSWORD
33+
value: "{{ customerbot_jira_password }}"
34+
- name: JIRA_USERNAME
35+
value: "{{ customerbot_jira_username }}"
36+
- name: RABBITMQ_HOSTNAME
37+
value: "{{ rabbit_host_address }}"
38+
- name: RABBITMQ_PASSWORD
39+
value: "{{ rabbit_password }}"
40+
- name: RABBITMQ_PORT
41+
value: "{{ rabbit_port }}"
42+
- name: RABBITMQ_USERNAME
43+
value: "{{ rabbit_username }}"
44+
- name: RUNNABLE_API_URL
45+
value: "{{ customerbot_runnable_api_url }}"
46+
- name: RUNNABLE_USER_CONTENT_DOMAIN
47+
value: "{{ customerbot_runnable_user_content_domain }}"
48+
- name: SLACK_WHITELIST
49+
value: "{{ customerbot_slack_whitelist }}"
50+
- name: STRIPE_SECRET_KEY
51+
value: "{{ customerbot_stripe_secret_key }}"

environments/delta/main.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,20 @@ cream_intercom_key: 173c1b366d11a3ef0f641c6b3327914368e67095
5252
cream_intercom_id: wqzm3rju
5353
cream_stripe_secret_key: sk_live_ZWLZtu5rxJ0ylSoF8xrHtNOw
5454

55+
customerbot_app_name: customerbot
56+
customerbot_bot_api_key: xoxb-32654916690-Sn4Ez4u9sG5EXHWB3ouRBHa8
57+
customerbot_datadog_api_key: d3ab5d85bca924f9d4e33d307beacb4a
58+
customerbot_datadog_app_key: 54a74a9c827bd7792f238f55cf3e1979d32065e6
59+
customerbot_github_access_token: c0be376ab39b9a363308d0928f9f80ee549c5af9
60+
customerbot_intercom_api_key: ef28806417aef605ca74573ff080c9d5eb0d6384
61+
customerbot_intercom_app_id: wqzm3rju
62+
customerbot_jira_password: ?hzcwzfGcg98FNuG)%ebWyFcTaCyFN#zoEm
63+
customerbot_jira_username: sohail
64+
customerbot_runnable_api_url: https://api.runnable.io/
65+
customerbot_runnable_user_content_domain: runnable.io
66+
customerbot_slack_whitelist: sohail,praful,keno,yash,anand,jorgito,nathan
67+
customerbot_stripe_secret_key: sk_live_ZWLZtu5rxJ0ylSoF8xrHtNOw
68+
5569
docker_config: docks
5670
docks_rollbar_key: d1af6567ed0f464fb1d676f38fd31751
5771

environments/gamma/inventory/hosts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ localhost
2424
[cream]
2525
localhost
2626

27+
[customerbot]
28+
localhost
29+
2730
[consul]
2831
localhost
2932

@@ -153,6 +156,7 @@ big-poppa
153156
charon
154157
consul
155158
cream
159+
customerbot
156160
datadog
157161
dock
158162
docker-listener

environments/gamma/main.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,20 @@ cream_intercom_key: 2548f3affd4923602dbf7bbab66eac377b5d3aac
4848
cream_intercom_id: xs5g95pd
4949
cream_stripe_secret_key: sk_test_4De8Zdkfcyb29swkMmjZUMRh
5050

51+
customerbot_app_name: customerbot-dev
52+
customerbot_bot_api_key: xoxb-124083371828-QVryLuIIJL8YL1eiMmGNKdih
53+
customerbot_datadog_api_key: d3ab5d85bca924f9d4e33d307beacb4a
54+
customerbot_datadog_app_key: 54a74a9c827bd7792f238f55cf3e1979d32065e6
55+
customerbot_github_access_token: c0be376ab39b9a363308d0928f9f80ee549c5af9
56+
customerbot_intercom_api_key: 9b4ee7b4f9818b36e368985fda0befa611928876
57+
customerbot_intercom_app_id: xs5g95pd
58+
customerbot_jira_password: ?hzcwzfGcg98FNuG)%ebWyFcTaCyFN#zoEm
59+
customerbot_jira_username: sohail
60+
customerbot_runnable_api_url: https://api.runnable-gamma.com/
61+
customerbot_runnable_user_content_domain: runnable.ninja
62+
customerbot_slack_whitelist: sohail,praful,keno,yash,anand,jorgito,nathan
63+
customerbot_stripe_secret_key: sk_test_4De8Zdkfcyb29swkMmjZUMRh
64+
5165
docker_config: docks
5266
docks_rollbar_key: d1af6567ed0f464fb1d676f38fd31751
5367

0 commit comments

Comments
 (0)