Skip to content

Commit 75ccf70

Browse files
author
Christopher M. Neill
committed
Some Ansible LARTing.
1 parent d314dac commit 75ccf70

5 files changed

Lines changed: 110 additions & 102 deletions

File tree

ansible/gamma-hosts/hosts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ gamma-bastion
33

44
[hipache]
55
gamma-hipache httpsCheckForBackend80=false prependIncomingPort=true subDomainDepth=4
6-
gamma-userland-hipache domain=runnablecloud.com httpsCheckForBackend80=true prependIncomingPort=true subDomainDepth=3
6+
gamma-userland-hipache domain=runnable.ninja httpsCheckForBackend80=true prependIncomingPort=true subDomainDepth=3
77

88
[mongodb]
99
gamma-mongo-us-west-2a

ansible/gamma-hosts/variables

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,4 +58,4 @@ rabbit_password=wKK7g7NWKpQXEeSzyWB7mIpxZIL8H2mDSf3Q6czR3Vk
5858
rabbit_username=o2mdLh9N9Ke2GzhoK8xsruYPhIQFN7iEL44dQJoq7OM
5959
registry_host=10.4.4.82
6060
swarm_token=d363b783f03a845a2c82b081bfe8443e
61-
user_content_domain=runnablecloud.com
61+
user_content_domain=runnable.ninja

ansible/group_vars/alpha-redis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# database vars
22
name: redis
33
db_path: "/opt/redis/db"
4+
redis_host: "{{ hostvars[groups['redis'][0]]['ansible_default_ipv4']['address'] }}"
45

56
# container_kill_start settings
67
container_image: redis

ansible/redis-slave.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
---
2+
- hosts: redis
23
- hosts: redis-slave
34
vars_files:
45
- "group_vars/alpha-redis.yml"

ssh/config

Lines changed: 106 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1,262 +1,268 @@
11
Host alpha*
2-
User ubuntu
3-
ForwardAgent yes
4-
StrictHostKeyChecking no
5-
IdentityFile ~/.ssh/Test-runnable.pem
2+
User ubuntu
3+
ForwardAgent yes
4+
StrictHostKeyChecking no
5+
IdentityFile ~/.ssh/Test-runnable.pem
66

77
Host beta*
8-
User ubuntu
9-
ForwardAgent yes
10-
StrictHostKeyChecking no
11-
IdentityFile ~/.ssh/oregon.pem
8+
User ubuntu
9+
ForwardAgent yes
10+
StrictHostKeyChecking no
11+
IdentityFile ~/.ssh/oregon.pem
1212

1313
Host gamma*
14-
User ubuntu
15-
ForwardAgent yes
16-
StrictHostKeyChecking no
17-
Identityfile ~/.ssh/gamma.pem
14+
User ubuntu
15+
ForwardAgent yes
16+
StrictHostKeyChecking no
17+
Identityfile ~/.ssh/gamma.pem
1818

1919
################################################################################
2020
# production runnable.io
2121
################################################################################
2222
Host alpha-bastion
23-
HostName 54.193.117.212
23+
HostName 54.193.117.212
2424

2525
Host alpha-bastion-2
26-
HostName 54.183.80.150
26+
HostName 54.183.80.150
2727

2828
Host 10.0.*.*
29-
User ubuntu
30-
ForwardAgent yes
31-
StrictHostKeyChecking no
32-
ProxyCommand ssh -q ubuntu@alpha-bastion-2 nc %h %p
33-
IdentityFile ~/.ssh/Test-runnable.pem
29+
User ubuntu
30+
ForwardAgent yes
31+
StrictHostKeyChecking no
32+
ProxyCommand ssh -q ubuntu@alpha-bastion-2 nc %h %p
33+
IdentityFile ~/.ssh/Test-runnable.pem
3434

3535
Host alpha-hipache
36-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.0.68 22
36+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.0.68 22
3737

3838
Host alpha-userland-hipache
39-
HostName 54.183.142.56
39+
HostName 54.183.142.56
4040

4141
Host alpha-registry
42-
User root
43-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.254 22
42+
User root
43+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.254 22
4444

4545
Host alpha-cayley
46-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.107 22
46+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.107 22
4747

4848
Host alpha-neo4j
49-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.101 22
49+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.101 22
5050

5151
Host alpha-mongodb01
52-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.244 22
52+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.244 22
5353

5454
Host alpha-mongodb02
55-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.9 22
55+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.9 22
5656

5757
Host alpha-mongodb03
58-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.251 22
58+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.251 22
5959

6060
Host alpha-api-old
61-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.239 22
61+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.239 22
6262

6363
Host alpha-api
64-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.142 22
64+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.142 22
6565

6666
Host alpha-khronos
67-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.217 22
67+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.217 22
6868

6969
Host alpha-web
70-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.85 22
70+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.85 22
7171

7272
Host alpha-redis-slave
73-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.181 22
73+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.181 22
7474

7575
Host alpha-redis
76-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.172 22
76+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.172 22
7777

7878
Host alpha-rabbit
79-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.253 22
79+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.253 22
8080

8181
################################################################################
8282
# staging runnable.io
8383
################################################################################
8484
Host alpha-stage-hipache
85-
HostName 54.219.130.96
85+
HostName 54.219.130.96
8686

8787
Host alpha-stage-userland-hipache
88-
HostName 54.153.38.172
88+
HostName 54.153.38.172
8989

9090
## do not change below line, it is referenced in ansible scripts
9191
# stage-hosts docks
9292

9393
Host alpha-stage-dock1
94-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.219 22
94+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.219 22
9595

9696
Host alpha-stage-dock2
97-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.240 22
97+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.240 22
9898

9999
Host alpha-stage-runnable
100-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.220 22
100+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.220 22
101101

102102
Host alpha-stage-dock-test
103-
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.213 22
103+
ProxyCommand ssh -q ubuntu@alpha-bastion nc 10.0.1.213 22
104104

105105
################################################################################
106106
# oregon
107107
################################################################################
108108
Host oregon-bastion
109-
HostName 52.25.121.228
110-
User ubuntu
111-
ForwardAgent yes
112-
IdentityFile ~/.ssh/oregon.pem
109+
HostName 52.25.121.228
110+
User ubuntu
111+
ForwardAgent yes
112+
IdentityFile ~/.ssh/oregon.pem
113113

114114
Host migration-router
115-
ProxyCommand ssh -q ubuntu@oregon-bastion nc 10.2.0.254 22
116-
User ubuntu
117-
ForwardAgent yes
118-
IdentityFile ~/.ssh/oregon.pem
115+
ProxyCommand ssh -q ubuntu@oregon-bastion nc 10.2.0.254 22
116+
User ubuntu
117+
ForwardAgent yes
118+
IdentityFile ~/.ssh/oregon.pem
119119

120120
Host hubot
121-
ProxyCommand ssh -q ubuntu@oregon-bastion nc 10.2.0.230 22
122-
User ubuntu
123-
ForwardAgent yes
124-
IdentityFile ~/.ssh/oregon.pem
121+
ProxyCommand ssh -q ubuntu@oregon-bastion nc 10.2.0.230 22
122+
User ubuntu
123+
ForwardAgent yes
124+
IdentityFile ~/.ssh/oregon.pem
125125

126126
################################################################################
127127
# beta
128128
################################################################################
129129
Host beta-bastion
130-
HostName 52.25.33.149
130+
HostName 52.25.33.149
131131

132132
Host 10.20.*.*
133-
User ubuntu
134-
ForwardAgent yes
135-
StrictHostKeyChecking no
136-
ProxyCommand ssh -o StrictHostKeyChecking=no -q ubuntu@beta-bastion nc %h %p
137-
IdentityFile ~/.ssh/oregon.pem
133+
User ubuntu
134+
ForwardAgent yes
135+
StrictHostKeyChecking no
136+
ProxyCommand ssh -o StrictHostKeyChecking=no -q ubuntu@beta-bastion nc %h %p
137+
IdentityFile ~/.ssh/oregon.pem
138138

139139
Host beta-mongodb01
140-
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.51 22
140+
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.51 22
141141

142142
Host beta-mongodb02
143-
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.52 22
143+
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.52 22
144144

145145
Host beta-mongodb03
146-
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.53 22
146+
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.53 22
147147

148148
Host beta-neo4j
149-
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.54 22
149+
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.54 22
150150

151151
Host beta-registry
152-
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.55 22
152+
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.55 22
153153

154154
Host beta-redis
155-
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.56 22
155+
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.56 22
156156

157157
Host beta-redis-slave
158-
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.57 22
158+
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.57 22
159159

160160
Host beta-hipache
161-
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.0.100 22
161+
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.0.100 22
162162

163163
Host beta-userland-hipache
164-
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.0.101 22
164+
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.0.101 22
165165

166166
Host beta-api
167-
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.58 22
167+
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.58 22
168168

169169
Host beta-services
170-
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.59 22
170+
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.59 22
171171

172172
Host beta-rabbit
173-
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.60 22
173+
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.60 22
174174

175175
Host beta-web
176-
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.61 22
176+
ProxyCommand ssh -q ubuntu@beta-bastion nc 10.20.1.61 22
177177

178178
################################################################################
179179
# Gamma
180180
################################################################################
181181

182182
Host gamma-bastion
183-
HostName 54.69.34.161
183+
HostName 54.69.34.161
184184

185185
Host 10.4.*.*
186-
User ubuntu
187-
ForwardAgent yes
188-
StrictHostKeyChecking no
189-
ProxyCommand ssh -o StrictHostKeyChecking=no -q ubuntu@gamma-bastion nc %h %p
190-
IdentityFile ~/.ssh/gamma.pem
186+
User ubuntu
187+
ForwardAgent yes
188+
StrictHostKeyChecking no
189+
ProxyCommand ssh -o StrictHostKeyChecking=no -q ubuntu@gamma-bastion nc %h %p
190+
IdentityFile ~/.ssh/gamma.pem
191191

192192
## Gamma Userland Hipache
193193
Host gamma-userland-hipache
194-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.0.141 22
194+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.0.141 22
195195

196196
Host gamma-user-us-west-2a
197-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.0.141 22
197+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.0.141 22
198198

199199
## Gamma App Hipache
200200
Host gamma-hipache
201-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.0.209 22
201+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.0.209 22
202202

203203
Host gamma-hipache-us-west-2a
204-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.0.209 22
204+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.0.209 22
205205

206206
## Gamma API
207207
Host gamma-api
208-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.4.188 22
208+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.4.188 22
209209

210210
Host gamma-api-us-west-2a
211-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.4.188 22
211+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.4.188 22
212212

213213
## Gamma MongoDB
214214
Host gamma-mongo-us-west-2a
215-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.7.144 22
215+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.7.144 22
216216

217217
Host gamma-mongo-us-west-2b
218-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.10.57 22
218+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.10.57 22
219219

220220
Host gamma-mongo-us-west-2c
221-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.15.18 22
221+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.15.18 22
222222

223223
## Gamma Redis
224224
Host gamma-redis
225-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.6.45 22
225+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.6.45 22
226226

227227
Host gamma-redis-us-west-2a
228-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.6.45 22
228+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.6.45 22
229+
230+
Host gamma-redis-slave
231+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.10.84 22
232+
233+
Host gamma-redis-us-west-2b
234+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.10.84 22
229235

230236
## Gamma Neo4J
231237
Host gamma-neo4j
232-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.4.210 22
238+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.4.210 22
233239

234240
Host gamma-neo4j-us-west-2a
235-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.4.210 22
241+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.4.210 22
236242

237243
## Gamma Services
238244
Host gamma-services-us-west-2a
239-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.6.251 22
245+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.6.251 22
240246

241247
## Gamma Registry
242248
Host gamma-registry-us-west-2a
243-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.4.82 22
249+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.4.82 22
244250

245251
Host gamma-registry
246-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.4.82 22
252+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.4.82 22
247253

248254
## Gamma Web
249255
Host gamma-web-us-west-2a
250-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.6.121 22
256+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.6.121 22
251257

252258
Host gamma-web
253-
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.6.121 22
259+
ProxyCommand ssh -q ubuntu@gamma-bastion nc 10.4.6.121 22
254260

255261
################################################################################
256262
# other
257263
################################################################################
258264
Host 127.0.0.1
259-
StrictHostKeyChecking no
260-
UserKnownHostsFile /dev/null
261-
User core
262-
LogLevel QUIET
265+
StrictHostKeyChecking no
266+
UserKnownHostsFile /dev/null
267+
User core
268+
LogLevel QUIET

0 commit comments

Comments
 (0)