Skip to content

Commit 58b0716

Browse files
author
Christopher M. Neill
committed
Merge branch 'master' into SAN-3910-move-core-files
2 parents f5f6062 + 1519ac3 commit 58b0716

49 files changed

Lines changed: 205 additions & 201 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ansible/base.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
- hosts: "{{ host }}"
3+
roles:
4+
- { role: notify, tags: [ notify ], app_name: base_sshd, git_branch: latest, name: base_sshd }
5+
- { role: package-dock, tags: [dock, package] }
6+
- { role: package-aws, tags: [dock, package] }
7+
- { role: package_ntp }
8+
- { role: docker, tags: [docker] }
9+
- { role: datadog, tags: [datadog] }
10+
- { role: ulimits, tags: [ulimits] }
11+
- { role: loggly-tls, tags: [loggly] }
12+
- { role: node }

ansible/consul-values.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
- "group_vars/alpha-consul.yml"
55
tasks:
66
- name: make sure httplib2 is installed
7-
sudo: yes
7+
become: true
88
apt: package=python-httplib2 state=present
99

1010
- name: put values into consul

ansible/delta-hosts/variables

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,14 +31,16 @@ eru_github_id=46a23f5f99f0aa9460f8
3131
eru_github_secret=a0336d72e3d540fb9fbbed2c123a81e1cb329dab
3232

3333
[khronos:vars]
34+
intercom_api_key=14771f14efb617900724a16345e57beb55ba9beb
35+
intercom_app_id=wqzm3rju
36+
khronos_canary_github_branches_instance_id=56f05754a443842400b66a53
37+
khronos_canary_logs_instance_id=56f07f5c1e089a200077f2a3
38+
khronos_canary_rebuild_instance_id=56df6674058d592500f76c9f
39+
khronos_canary_rebuild_navi_url=http://canary-build-staging-runnabletest.runnableapp.com:8000/
40+
khronos_canary_token=24592325a6f881e77a01e3bacf0952c49f4e9f1c
3441
khronos_mongo_auth=api:72192e5a-a5e1-11e5-add9-0270db32f7ad
3542
khronos_mongo_database=delta
3643
khronos_mongo_replset_name=delta
37-
khronos_canary_token=24592325a6f881e77a01e3bacf0952c49f4e9f1c
38-
khronos_canary_rebuild_instance_id=56df6674058d592500f76c9f
39-
khronos_canary_rebuild_navi_url=http://canary-build-staging-runnabletest.runnableapp.com:8000/
40-
khronos_canary_logs_instance_id=56f07f5c1e089a200077f2a3
41-
khronos_canary_github_branches_instance_id=56f05754a443842400b66a53
4244

4345
[metis:vars]
4446
metis_rollbar_key=fdc8565a7ce64c6d9432c34be425937c

ansible/detention.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
- hosts: redis
3+
- hosts: consul
34

45
- hosts: detention
56
vars_files:

ansible/eru.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
---
22
- hosts: redis
3+
- hosts: consul
34

45
- hosts: eru
56
vars_files:

ansible/gamma-hosts/variables

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ eru_github_secret=74a23ee56486d57b14f292283cb04625f600917c
3333
khronos_mongo_auth=api:3f5210b8-8fe3-11e5-8e62-07b6eff19ecb
3434
khronos_mongo_database=gamma
3535
khronos_mongo_replset_name=gamma
36-
khronos_canary_token=d939b612d75244947c9e07b3fec22c9fe95f13ae
37-
khronos_canary_rebuild_instance_id=56e077e595ba23200046ce7a
38-
khronos_canary_rebuild_navi_url=http://canary-build-staging-runnabletest.runnable.ninja:8000/
3936

4037
[metis:vars]
4138
metis_rollbar_key=fdc8565a7ce64c6d9432c34be425937c

ansible/group_vars/alpha-khronos.yml

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,25 @@ cron_build_canary_command: "/khronos/bin/cli.js --queue khronos:canary:build --j
2121
cron_log_canary_command: "/khronos/bin/cli.js --queue khronos:canary:log --job '{}' --host {{ cron_rabbit_host_address }} {{ cron_rabbit_auth }}"
2222
# This is the github-branch canary cron command
2323
cron_github_branch_canary_command: "/khronos/bin/cli.js --queue khronos:canary:github-branch --job '{}' --host {{ cron_rabbit_host_address }} {{ cron_rabbit_auth }}"
24+
cron_container_metrics_command: "/khronos/bin/cli.js --queue khronos:metrics:container-status --job '{}' --host {{ cron_rabbit_host_address }} {{ cron_rabbit_auth }}"
2425

2526
# for container settings
2627
container_envs: >
27-
-e API_URL={{ api_url }}
2828
-e API_SOCKET_SERVER=https://{{ api_socket_server_hostname }}
29-
-e CANARY_API_TOKEN={{ khronos_canary_token }}
30-
-e CANARY_REBUILD_INSTANCE_ID={{ khronos_canary_rebuild_instance_id }}
31-
-e CANARY_REBUILD_NAVI_URL={{ khronos_canary_rebuild_navi_url }}
29+
-e API_URL={{ api_url }}
30+
-e CANARY_API_TOKEN={{ khronos_canary_token | default('undefined') }}
31+
-e CANARY_GITHUB_BRANCHES_INSTANCE_ID={{ khronos_canary_github_branches_instance_id | default('undefined') }}
32+
-e CANARY_LOG_INSTANCE_ID={{ khronos_canary_logs_instance_id | default('undefined') }}
33+
-e CANARY_LOG_TERMINAL_SLEEP=10
34+
-e CANARY_REBUILD_INSTANCE_ID={{ khronos_canary_rebuild_instance_id | default('undefined') }}
35+
-e CANARY_REBUILD_NAVI_URL={{ khronos_canary_rebuild_navi_url | default('undefined') }}
3236
-e DATADOG_HOST={{ datadog_host_address }}
3337
-e DATADOG_PORT={{ datadog_port }}
34-
-e KHRONOS_PREFETCH=6
38+
-e INTERCOM_API_KEY={{ intercom_api_key | default('undefined') }}
39+
-e INTERCOM_APP_ID={{ intercom_app_id | default('undefined') }}
3540
-e KHRONOS_MAVIS=http://{{ mavis_hostname }}
3641
-e KHRONOS_MONGO=mongodb://{{ khronos_mongo_auth }}@{{ mongo_hosts }}/{{ khronos_mongo_database }}
42+
-e KHRONOS_PREFETCH=6
3743
-e LOG_LEVEL=error
3844
{% if node_env != "production-epsilon" %}
3945
-e MONGO_CACERT=/opt/ssl/mongo-client/ca.pem
@@ -45,10 +51,8 @@ container_envs: >
4551
-e RABBITMQ_PASSWORD={{ rabbit_password }}
4652
-e RABBITMQ_PORT={{ rabbit_port }}
4753
-e RABBITMQ_USERNAME={{ rabbit_username }}
54+
-e SWARM_HOST=http://{{ swarm_host_address }}:{{ swarm_master_port }}
4855
-e WORKER_MAX_RETRY_DELAY=3600000
49-
-e CANARY_LOG_TERMINAL_SLEEP=10
50-
-e CANARY_LOG_INSTANCE_ID={{khronos_canary_logs_instance_id}}
51-
-e CANARY_GITHUB_BRANCHES_INSTANCE_ID={{khronos_canary_github_branches_instance_id}}
5256
5357
container_run_opts: >
5458
-h {{ name }}

ansible/khronos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
- hosts: rabbitmq
33
- hosts: mongodb
44
- hosts: consul
5+
- hosts: swarm-manager
56

67
- hosts: khronos
78
vars_files:
@@ -14,4 +15,3 @@
1415
- { role: builder, tags: [ build ] }
1516
- { role: khronos, tags: [ deploy ] }
1617
- { role: container_kill_start }
17-

ansible/oneOffScripts/killWeaveContainers.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
serial: 1
44
tasks:
55
- name: kill weave containers
6-
sudo: yes
6+
become: true
77
shell: 'sudo docker ps | grep weaveworks/weave | cut -d" " -f 1 | xargs sudo docker kill'

ansible/oneOffScripts/ntpForceUpdate.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@
55

66
# pl test on test box
77
- name: Froce ntp update
8-
sudo: yes
8+
become: true
99
shell:
1010
"service ntp stop && /usr/sbin/ntpdate pool.ntp.org && service ntp start"

0 commit comments

Comments
 (0)