Skip to content

Commit 6cb8935

Browse files
author
Anandkumar Patel
committed
Merge branch 'master' into new-swarm-certs
2 parents c660f2f + 9faab90 commit 6cb8935

10 files changed

Lines changed: 62 additions & 5 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ ansible-playbook -i ./[stage-hosts, prod-hosts] [appname].yml -t deploy -e git_b
6060
This will redeploy the current deploy without rebuilding
6161

6262
```
63-
ansible-playbook -i./[stage-hosts, prod-hosts] [appname].yml -e git_branch=some-branch-name -e build_args=--no-cache
63+
ansible-playbook -i ./[stage-hosts, prod-hosts] [appname].yml -e git_branch=some-branch-name -e build_args=--no-cache
6464
```
6565

6666
deploy latest version of the branch

ansible/beta-hosts/hosts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,9 @@ beta-api
3434
[eru]
3535
beta-services
3636

37+
[fluffy]
38+
beta-services
39+
3740
[navi]
3841
beta-navi
3942

@@ -93,6 +96,7 @@ bastion
9396
charon
9497
docks
9598
eru
99+
fluffy
96100
hipache
97101
khronos
98102
link

ansible/beta-hosts/variables

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ api_aws_secret_access_key=A6XOpeEElvvIulfAzVLohqKtpKij5ZE8h0FFx0Jn
44
api_github_client_id=baa5c868b6d17d7ae002
55
api_github_client_secret=ad4f8527ae98d7eea15a32ee5abbead5c9a25abc
66
api_github_deploy_keys_bucket=runnable.deploykeys.production-beta
7-
api_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af
87
api_mixpanel_app_id=c41affa4b08818443365c526cbb51606
98
api_mongo_auth=api:oW4c7x9Wiv28oiNBy2Bc
109
api_mongo_database=beta
@@ -60,3 +59,4 @@ rabbit_username=o2mdLh9N9Ke2GzhoK8xsruYPhIQFN7iEL44dQJoq7OM
6059
registry_host=10.20.1.55
6160
swarm_token=d363b783f03a845a2c82b081bfe8443e
6261
user_content_domain=runnablecloud.com
62+
api_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af

ansible/fluffy.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
- hosts: redis
3+
4+
- hosts: fluffy
5+
vars_files:
6+
- "group_vars/alpha-fluffy.yml"
7+
roles:
8+
- { role: notify, tags: "notify" }
9+
- { role: redis_key, tags: ["setup", "redis_key"] }
10+
- { role: builder, tags: "build" }
11+
- { role: container_start, tags: "deploy" }
12+

ansible/gamma-hosts/variables

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ api_aws_secret_access_key=A6XOpeEElvvIulfAzVLohqKtpKij5ZE8h0FFx0Jn
44
api_github_client_id=b6072dc57062faca7fcb
55
api_github_client_secret=ba73a9294dc4bfaa7ed02ba187f73918506e4293
66
api_github_deploy_keys_bucket=runnable.deploykeys.production-beta
7-
api_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af
87
api_mixpanel_app_id=c41affa4b08818443365c526cbb51606
98
api_mongo_auth=api:3f5210b8-8fe3-11e5-8e62-07b6eff19ecb
109
api_mongo_database=gamma
@@ -70,3 +69,4 @@ rabbit_username=o2mdLh9N9Ke2GzhoK8xsruYPhIQFN7iEL44dQJoq7OM
7069
registry_host=10.4.4.82
7170
swarm_token=d363b783f03a845a2c82b081bfe8443e
7271
user_content_domain=runnable.ninja
72+
api_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af

ansible/group_vars/all.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ loggly_username: ops
3434

3535
# api
3636
api_github_hook_secret: 3V3RYTHINGisAW3S0ME!
37+
api_hostname: api.{{ domain }}
3738
api_neo4j_port: 7474
3839
api_neo4j_protocol: http://
39-
api_hostname: api.{{ domain }}
4040
api_port: 80
4141

4242
# astral
@@ -69,6 +69,10 @@ docker_port: 4242
6969
eru_port: 57831
7070
eru_hostname: "admin.{{ domain }}"
7171

72+
# fluffy
73+
fluffy_port: 80
74+
fluffy_hostname: "fluffy.{{ domain }}"
75+
7276
# mavis
7377
mavis_hostname: "mavis.{{ domain }}"
7478
mavis_port: 3000

ansible/group_vars/alpha-detention.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,10 @@ dockerfile_post_install_commands: [
1616
]
1717

1818
container_envs: >
19-
-e NODE_ENV={{ node_env }}
2019
-e ABSOLUTE_URL={{ detention_hostname }}
20+
-e API_HOSTNAME={{ api_hostname }}
21+
-e HELLO_RUNNABLE_GITHUB_TOKEN={{ api_hello_runnable_github_token }}
22+
-e NODE_ENV={{ node_env }}
2123
-e PORT={{ hosted_ports[0] }}
2224
2325
container_run_opts: >
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: "fluffy"
2+
3+
container_image: "registry.runnable.com/runnable/{{ name }}"
4+
container_tag: "{{ git_branch }}"
5+
repo: "git@github.com:CodeNow/{{ name }}.git"
6+
hosted_ports: ["{{ fluffy_port }}"]
7+
node_version: "4.2.2"
8+
npm_version: "2.1.18"
9+
10+
# for redis
11+
redis_key: "frontend:{{ fluffy_hostname }}"
12+
is_redis_update_required: 'yes'
13+
14+
dockerfile_post_install_commands: [
15+
"git clone -b master --single-branch git@github.com:CodeNow/devops-scripts /opt/devops-scripts",
16+
"git clone -b bin-bash --single-branch git@github.com:CodeNow/docks-cli /opt/docks-cli",
17+
"cd /opt/docks-cli && npm install && npm link ."
18+
]
19+
20+
# container settings
21+
container_envs: >
22+
-e PORT={{ hosted_ports[0] }}
23+
-e NODE_ENV={{ node_env }}
24+
-e DEVOPS_SCRIPTS_PATH="opt/devops-scripts"
25+
26+
container_run_opts: >
27+
-h {{ name }}
28+
-d
29+
-P
30+
{{container_envs}}

ansible/prod-hosts/hosts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,9 @@ alpha-api
4040
[eru]
4141
alpha-api-old
4242

43+
[fluffy]
44+
alpha-api-old
45+
4346
[navi]
4447
alpha-navi
4548

@@ -100,6 +103,7 @@ charon
100103
detention
101104
docks
102105
eru
106+
fluffy
103107
hipache
104108
hubot
105109
khronos

ansible/prod-hosts/variables

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,4 @@ rabbit_username=a4c1ac709c3bc685a6665fc1d23d737d
6060
registry_host=10.0.1.254
6161
swarm_token=40ec138a1b478aaf84aca2a1c21c70fe
6262
user_content_domain=runnableapp.com
63+
api_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af

0 commit comments

Comments
 (0)