Skip to content

Commit a1c0210

Browse files
author
anandkumarpatel
committed
Merge pull request #264 from CodeNow/fix-stage-configs
create dock with ansible
2 parents b8d0ef7 + 41a6233 commit a1c0210

File tree

32 files changed

+333
-112
lines changed

32 files changed

+333
-112
lines changed

ansible/charon.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,12 @@
22
- hosts: redis
33
- hosts: consul
44

5-
- hosts: docks
5+
- hosts: "{{ dock | default('docks') }}"
66
vars_files:
77
- group_vars/alpha-charon.yml
88
roles:
99
- { role: notify, tags: [notify] }
10-
- { role: git_node_service, tags: [deploy] }
10+
- { role: git_repo, tags: [deploy] }
11+
- { role: node_service, tags: [deploy] }
1112
- { role: loggly-rotate }
1213
- { role: consul_value, tags: [deploy, consul_value] }

ansible/delta-hosts/hosts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ delta-api-worker
3333

3434
[docks]
3535

36+
[dock]
37+
3638
[eru]
3739
delta-services
3840

@@ -113,6 +115,7 @@ sauron
113115
shiva
114116
metis
115117
swarm-manager
118+
dock
116119

117120
[local]
118121
127.0.0.1

ansible/delta-hosts/variables

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ api_s3_context_bucket=runnable.context.resources.production
1515

1616
[docks:vars]
1717
docker_config=docks
18+
docks_rollbar_key=d1af6567ed0f464fb1d676f38fd31751
19+
20+
[dock:vars]
21+
docks_rollbar_key=d1af6567ed0f464fb1d676f38fd31751
1822

1923
[eru:vars]
2024
eru_github_id=46a23f5f99f0aa9460f8
@@ -48,10 +52,6 @@ aws_secret_access_key=GrOO85hfoc7+bwT2GjoWbLyzyNbOKb2/XOJbCJsv
4852
shiva_rollbar_key=0526a90faec845d796e1ef5361a00526
4953

5054
[vault:vars]
51-
vault_auth_token=578c9767-5af8-8490-0954-5d330f27b088
52-
vault_token_01=0d324dc7d4cbd94790fd08809d06fb1e28e21e185910081c7646e3e49924f6ed01
53-
vault_token_02=42dc8a69df174e77eb47a63b6ef4709bec57101cb1bff11a71c91b73b8bc046102
54-
vault_token_03=47f3cb74f5374fa3c51c90fd25e3d4cc851034de97584995fce5fc5382342f1f03
5555
vault_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af
5656
vault_aws_access_key_id=AKIAJ7R4UIM45KH2WGWQ
5757
vault_aws_secret_key=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
@@ -74,6 +74,10 @@ rabbit_password=wKK7g7NWKpQXEeSzyWB7mIpxZIL8H2mDSf3Q6czR3Vk
7474
rabbit_username=o2mdLh9N9Ke2GzhoK8xsruYPhIQFN7iEL44dQJoq7OM
7575
registry_host=10.8.4.126
7676
user_content_domain=runnableapp.com
77+
vault_auth_token=578c9767-5af8-8490-0954-5d330f27b088
78+
vault_token_01=0d324dc7d4cbd94790fd08809d06fb1e28e21e185910081c7646e3e49924f6ed01
79+
vault_token_02=42dc8a69df174e77eb47a63b6ef4709bec57101cb1bff11a71c91b73b8bc046102
80+
vault_token_03=47f3cb74f5374fa3c51c90fd25e3d4cc851034de97584995fce5fc5382342f1f03
7781

7882
[ec2:vars]
7983
aws_custid=437258487404

ansible/dock-init.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
---
22
- hosts: consul
3+
4+
- hosts: "{{ dock }}"
35
vars_files:
46
- group_vars/alpha-dock-init.yml
57
roles:
68
- { role: notify, tags: [notify] }
9+
- { role: package-dock, tags: [dock, package] }
10+
- { role: package-aws, tags: [dock, package] }
11+
- { role: docker, tags: [docker] }
12+
- { role: datadog, tags: [deploy, datadog] }
13+
- { role: git_repo, tags: [deploy] }
14+
- { role: dock-init, tags: [deploy] }
715
- { role: consul_value, tags: [deploy, consul_value] }

ansible/dock.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
---
2+
- hosts: localhost
3+
connection: local
4+
tasks:
5+
- fail: msg="`dock` (target dock) needs to be defined to run this role"
6+
when: dock is not defined
7+
- add_host:
8+
name={{ dock }}
9+
groups=dock
10+
11+
- include: dock-init.yml git_branch=v6.0.0
12+
- include: krain.yml git_branch=v0.1.1
13+
- include: filibuster.yml git_branch=v0.1.7
14+
- include: charon.yml git_branch=v3.2.0
15+
- include: image-builder.yml git_branch=v4.0.1
16+
- include: docker-listener.yml git_branch=v4.3.0

ansible/docker-listener.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@
33
- hosts: redis
44
- hosts: consul
55

6-
- hosts: docks
6+
- hosts: "{{ dock | default('docks') }}"
77
vars_files:
88
- group_vars/alpha-docker-listener.yml
99
roles:
1010
- { role: notify, tags: [notify] }
1111
- { role: build_essential }
1212
- { role: docker_client }
13-
- { role: git_node_service, tags: [deploy] }
13+
- { role: git_repo, tags: [deploy] }
14+
- { role: node_service, tags: [deploy] }
1415
- { role: loggly-rotate }
1516
- { role: consul_value, tags: [deploy, consul_value] }

ansible/docks.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

ansible/filibuster.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
---
22
- hosts: consul
33

4-
- hosts: docks
4+
- hosts: "{{ dock | default('docks') }}"
55
vars_files:
66
- group_vars/alpha-filibuster.yml
77
roles:
88
- { role: notify, tags: [notify] }
9-
- { role: git_node_service, tags: [deploy] }
9+
- { role: git_repo, tags: [deploy] }
10+
- { role: node_service, tags: [deploy] }
1011
- { role: loggly-rotate }
1112
- { role: consul_value, tags: [deploy, consul_value] }

ansible/gamma-hosts/hosts

Lines changed: 14 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,28 +90,33 @@ gamma-services
9090

9191
[docks]
9292

93+
[dock]
94+
9395
[gamma:children]
96+
api
9497
bastion
98+
charon
99+
dock
100+
docks
101+
eru
95102
hipache
103+
khronos
104+
mavis
96105
mongodb
106+
navi
107+
neo4j
108+
optimus
109+
rabbitmq
97110
api
98111
worker
99112
web
100113
redis
101114
redis-slave
102-
docks
103115
registry
104-
neo4j
105-
navi
106-
charon
107-
khronos
108-
mavis
109-
optimus
110-
rabbitmq
111-
eru
112116
sauron
113117
shiva
114118
swarm-manager
119+
web
115120
metis
116121

117122
[ec2]

ansible/gamma-hosts/variables

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ api_s3_context_bucket=runnable.context.resources.production-beta
1515

1616
[docks:vars]
1717
docker_config=docks
18+
docks_rollbar_key=d1af6567ed0f464fb1d676f38fd31751
1819

1920
[eru:vars]
2021
eru_github_id=8abb08f83f6d1c52bd1a
@@ -48,10 +49,6 @@ aws_secret_access_key=GrOO85hfoc7+bwT2GjoWbLyzyNbOKb2/XOJbCJsv
4849
shiva_rollbar_key=0526a90faec845d796e1ef5361a00526
4950

5051
[vault:vars]
51-
vault_auth_token=e22c3ebc-11cf-653b-7df0-79d78a499458
52-
vault_token_01=71d7b4754686013c8b9cfb22bafae79c661849dcd67c483c89efba12c0466aa201
53-
vault_token_02=794d6f7a3459c332a1fd2bbcc9230a7f84f1639806039ee8be547828cd7ab03a02
54-
vault_token_03=2e67faeffe4343c038d0f3210bdb83f3d3a5bc468975cf13e977ce9b5922aefe03
5552
vault_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af
5653
vault_aws_access_key_id=AKIAJ7R4UIM45KH2WGWQ
5754
vault_aws_secret_key=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
@@ -74,6 +71,11 @@ registry_host=10.4.4.82
7471
swarm_token=d363b783f03a845a2c82b081bfe8443e
7572
user_content_domain=runnable.ninja
7673
api_hello_runnable_github_token=88ddc423c2312d02a8bbcaad76dd4c374a30e4af
74+
no_dd_monitoring=false
75+
vault_auth_token=e22c3ebc-11cf-653b-7df0-79d78a499458
76+
vault_token_01=71d7b4754686013c8b9cfb22bafae79c661849dcd67c483c89efba12c0466aa201
77+
vault_token_02=794d6f7a3459c332a1fd2bbcc9230a7f84f1639806039ee8be547828cd7ab03a02
78+
vault_token_03=2e67faeffe4343c038d0f3210bdb83f3d3a5bc468975cf13e977ce9b5922aefe03
7779

7880
[ec2:vars]
7981
env=gamma

0 commit comments

Comments
 (0)