forked from bencoughlan/automationlogic
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.html
567 lines (469 loc) · 25.1 KB
/
README.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
<html>
<head>
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<meta name=Generator content="Microsoft Word 15 (filtered)">
<style>
<!--
/* Font Definitions */
@font-face
{font-family:Wingdings;
panose-1:5 0 0 0 0 0 0 0 0 0;}
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Garamond;
panose-1:2 2 4 4 3 3 1 1 8 3;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin-top:0cm;
margin-right:0cm;
margin-bottom:8.0pt;
margin-left:0cm;
line-height:107%;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
h2
{mso-style-link:"Heading 2 Char";
margin-top:2.0pt;
margin-right:0cm;
margin-bottom:0cm;
margin-left:0cm;
margin-bottom:.0001pt;
line-height:107%;
page-break-after:avoid;
font-size:13.0pt;
font-family:"Calibri Light",sans-serif;
color:#2E74B5;
font-weight:normal;}
p.MsoTitle, li.MsoTitle, div.MsoTitle
{mso-style-link:"Title Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:28.0pt;
font-family:"Calibri Light",sans-serif;
letter-spacing:-.5pt;}
p.MsoTitleCxSpFirst, li.MsoTitleCxSpFirst, div.MsoTitleCxSpFirst
{mso-style-link:"Title Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:28.0pt;
font-family:"Calibri Light",sans-serif;
letter-spacing:-.5pt;}
p.MsoTitleCxSpMiddle, li.MsoTitleCxSpMiddle, div.MsoTitleCxSpMiddle
{mso-style-link:"Title Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:28.0pt;
font-family:"Calibri Light",sans-serif;
letter-spacing:-.5pt;}
p.MsoTitleCxSpLast, li.MsoTitleCxSpLast, div.MsoTitleCxSpLast
{mso-style-link:"Title Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:28.0pt;
font-family:"Calibri Light",sans-serif;
letter-spacing:-.5pt;}
p.MsoSubtitle, li.MsoSubtitle, div.MsoSubtitle
{mso-style-link:"Subtitle Char";
margin-top:0cm;
margin-right:0cm;
margin-bottom:8.0pt;
margin-left:0cm;
line-height:107%;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
color:#5A5A5A;
letter-spacing:.75pt;}
a:link, span.MsoHyperlink
{color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{color:#954F72;
text-decoration:underline;}
code
{font-family:"Courier New";}
pre
{mso-style-link:"HTML Preformatted Char";
margin:0cm;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.MsoNoSpacing, li.MsoNoSpacing, div.MsoNoSpacing
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph
{margin-top:0cm;
margin-right:0cm;
margin-bottom:8.0pt;
margin-left:36.0pt;
line-height:107%;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, div.MsoListParagraphCxSpFirst
{margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
line-height:107%;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.MsoListParagraphCxSpMiddle, li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle
{margin-top:0cm;
margin-right:0cm;
margin-bottom:0cm;
margin-left:36.0pt;
margin-bottom:.0001pt;
line-height:107%;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast
{margin-top:0cm;
margin-right:0cm;
margin-bottom:8.0pt;
margin-left:36.0pt;
line-height:107%;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
span.m7186240175631773464gmail-il
{mso-style-name:m_7186240175631773464gmail-il;}
span.SubtitleChar
{mso-style-name:"Subtitle Char";
mso-style-link:Subtitle;
font-family:"Times New Roman",serif;
color:#5A5A5A;
letter-spacing:.75pt;}
span.TitleChar
{mso-style-name:"Title Char";
mso-style-link:Title;
font-family:"Calibri Light",sans-serif;
letter-spacing:-.5pt;}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-link:"HTML Preformatted";
font-family:"Courier New";}
span.Heading2Char
{mso-style-name:"Heading 2 Char";
mso-style-link:"Heading 2";
font-family:"Calibri Light",sans-serif;
color:#2E74B5;}
.MsoPapDefault
{margin-bottom:8.0pt;
line-height:107%;}
@page WordSection1
{size:595.3pt 841.9pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
/* List Definitions */
ol
{margin-bottom:0cm;}
ul
{margin-bottom:0cm;}
-->
</style>
</head>
<body lang=EN-IE link=blue vlink="#954F72">
<div class=WordSection1>
<p class=MsoNormal><b><span style='font-family:"Garamond",serif'>Environment/Setup</span></b></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>OS - Windows 10 </span></p>
<p class=MsoNormal><b><span style='font-family:"Garamond",serif'>Env Variables
- </span></b></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>C:\Program
Files\Git\usr\bin</span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>C:\Program
Files\Oracle\VirtualBox</span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>C:\HashiCorp\Vagrant\bin</span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'> </span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>The following
cost a few hours, and some hair. </span></p>
<p class=MsoNormal><b><span style='font-family:"Garamond",serif'>For Windows
user’s : Enable hardware virtualization on your host, it's one of the few
listed options in the BIOS. </span></b></p>
<p class=MsoNormal><b><span style='font-family:"Garamond",serif'>Turn off Hyper
V, this messes with virtualbox and VMware tools. </span></b></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'> </span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>Step 1 </span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>Install Virtualbox
- Version - VirtualBox 5.1.12 platform packages.</span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>URL :
https://www.virtualbox.org/wiki/Downloads</span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'> </span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>Step 2 </span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>Install Vagrant -
Version - 1.9.1</span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>URL :
https://www.vagrantup.com/downloads.html</span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'> </span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>Step 3</span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>We want ssh,
without messing around with OpenSSH or anything with big words like marmalade. </span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>Install Git for
windows - Version - 2.11.0</span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>URL :
https://git-scm.com/download/win</span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'> </span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>Step 4 </span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>Run vagrant box
add - with the following options - puppetlabs/ubuntu-14.04-64-nocm</span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>https://vagrantcloud.com/puppetlabs/boxes/ubuntu-14.04-64-nocm</span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'> </span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>Step 5 </span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>Run vagrant up</span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'> </span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'> </span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'>Spec comments. </span><br>
<br>
The solution should contain a Vagrantfile, all associated configuration
management files, and a README that lists both the steps we should run to
duplicate your solution and any assumed software version(s).</p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<pre style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'><a href="https://github.com/BenCoughlan15/automationlogic">https://github.com/BenCoughlan15/automationlogic</a></span></pre>
<p class=MsoListParagraphCxSpFirst><span style='font-size:10.0pt;line-height:
107%;color:black'><br>
<br>
</span></p>
<p class=MsoListParagraphCxSpLast style='text-indent:-18.0pt'><span
class=SubtitleChar><span style='font-family:"Garamond",serif'>1.<span
style='font:7.0pt "Times New Roman"'> </span></span></span><span
class=SubtitleChar><span style='font-family:"Garamond",serif'>The solution
should only require vagrant installed on the host machine with all additional
software installed on the virtual machines.</span></span></p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span class=SubtitleChar><span style='font-family:
"Garamond",serif'> </span></span></p>
<pre style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'>I’m using git to pull down the repo, and using the ssh binary in there, so I don’t need to mess with the fresh hell of configuring ssh on Windows. </span></pre><pre
style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'> </span></pre><pre style='background:#F7F7F7'><span
style='font-family:"Garamond",serif;color:black'>I’ve also installed Virtualbox, and Vagrant. (see above).</span></pre><pre
style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'> </span></pre>
<p class=MsoListParagraphCxSpFirst> </p>
<p class=MsoListParagraphCxSpLast style='text-indent:-18.0pt'>2.<span
style='font:7.0pt "Times New Roman"'> </span><br>
· Create a Vagrantfile that creates a single machine using this box:<a
href="https://vagrantcloud.com/puppetlabs/boxes/ubuntu-14.04-64-nocm"
target="_blank"><span style='color:#1155CC'>https://vagrantcloud.com/puppetlabs/boxes/ubuntu-14.04-64-nocm</span></a><br>
and installs the latest released version of your chosen configuration
management tool.</p>
<pre style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'>see above. </span></pre>
<p class=MsoNormal><span style='font-family:"Garamond",serif'> </span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt'><span style='font-family:
"Garamond",serif'>3.<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-family:"Garamond",serif'>Install the nginx
webserver via configuration management.</span></p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<pre style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'>Ansible installs this, as part of its playbook. </span></pre>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt'>4.<span style='font:7.0pt "Times New Roman"'>
</span><br>
· Run a simple test using Vagrant's shell provisioner to ensure that nginx is
listening on port 80</p>
<pre style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'>Emphasis on simple…. The last command of the Vagrantfile should show you the network settings. </span></pre><pre
style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'>This is pretty nasty, I’d have Nagios do this in future. </span></pre><pre
style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'> </span></pre><pre style='background:#F7F7F7'><img border=0
width=602 height=29 id="Picture 1" src="README_files/image001.jpg"></pre>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt'>5.<span style='font:7.0pt "Times New Roman"'>
</span><br>
· Again, using configuration management, update contents of /etc/sudoers file
so that Vagrant user can sudo without a password and that anyone in the admin
group can sudo with a password.</p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<pre style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'>Provision.sh runs from vagrant to do this substitution, it remains idemponent by checking for fields before executing the command, in hindsight I’d bomb much of it into ansible. </span></pre><pre
style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'> </span></pre><pre style='background:#F7F7F7'><span
style='font-family:"Garamond",serif;color:black'>To test this, run </span></pre><pre
style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:#333333'>vagrant ssh -c "sudo grep 'admin\|vagrant' /etc/sudoers" loadbalancer</span></pre><pre
style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'> </span></pre>
<p class=MsoListParagraph style='text-indent:-18.0pt'>6.<span style='font:7.0pt "Times New Roman"'>
</span><br>
· Make the solution idempotent so that re-running the provisioning step will
not restart nginx unless changes have been made</p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<pre style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'>See above : ansible also does this by default. </span></pre>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt'>7.<span style='font:7.0pt "Times New Roman"'>
</span><br>
· Create a simple "Hello World" web application in your favourite
language of choice.</p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<pre style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'>Go to 10.0.15.11 for the site. </span></pre><pre style='background:
#F7F7F7'><span style='font-family:"Garamond",serif;color:black'> </span></pre><pre
style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'>Each application host is also available via their respective ip’s for your convenience. </span></pre><pre
style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'> </span></pre><pre style='background:#F7F7F7'><span
style='font-family:"Garamond",serif;color:black'> </span></pre><pre
style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'>Not overly chuffed with this, I had grand plans to have it connect to a web server populate a database full of 1990’s spinning gif’s, but I’m out of time, so.. </span></pre><pre
style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'> </span></pre><pre style='background:#F7F7F7'><img border=0
width=137 height=81 id="Picture 2" src="README_files/image002.jpg"> <img
border=0 width=152 height=82 id="Picture 3" src="README_files/image003.jpg"></pre><pre
style='background:#F7F7F7'> </pre>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt'>8.<span style='font:7.0pt "Times New Roman"'>
</span><br>
· Ensure your web application is available via the nginx instance.</p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<pre style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'>As I’m using haproxy to balance these, I may have made a mistake here, you can certainly access these application hosts independently, but the loadbalancer uses haproxy to manage the nginx services, re-reading this, I feel like an idiot, so I’m going to be a coward and blame the oversight on time constraints. </span></pre>
<p class=MsoListParagraphCxSpFirst> </p>
<p class=MsoListParagraphCxSpLast style='text-indent:-18.0pt'>9.<span
style='font:7.0pt "Times New Roman"'> </span><br>
Extend the Vagrantfile to deploy this webapp to two additional vagrant machines
and then configure the nginx to load balance between them.</p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<pre style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'>See Vagrantfile</span></pre>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt'><span style='font-size:
9.5pt;line-height:107%;color:#222222'>10.<span style='font:7.0pt "Times New Roman"'>
</span></span><br>
· Test (in an automated fashion) that both app servers are working, and that
the nginx is serving the content correctly.</p>
<pre style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'>Vagrant does this on provision with connectiontest.sh. </span></pre><pre
style='background:#F7F7F7'><span style='font-family:"Garamond",serif;
color:black'> </span></pre><pre style='background:#F7F7F7'><span
style='font-family:"Garamond",serif;color:black'>Again, I’d have configured Nagios..</span></pre>
<p class=MsoSubtitle><span style='font-family:"Garamond",serif'> </span></p>
<p class=MsoListParagraph style='text-indent:-18.0pt'>11.<span
style='font:7.0pt "Times New Roman"'> </span><br>
I’m interested in your working as much as your answers, so where you make a
decision to go one way rather than another, please explain your thinking.<br>
Your solution will be assessed on code quality and comprehensibility, not just
on technical correctness.</p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<h2><span style='font-family:"Garamond",serif'>Things I’d change : </span></h2>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<p class=MsoListParagraph style='margin-top:0cm;margin-right:0cm;margin-bottom:
0cm;margin-left:18.0pt;margin-bottom:.0001pt;text-indent:-18.0pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:Symbol;
color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'>I’d have given myself more time, I’ve had a few major releases in
work this week so have been working around the clock, and haven’t had a lot of
time to do this exercise. </span></p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<p class=MsoListParagraph style='margin-top:0cm;margin-right:0cm;margin-bottom:
0cm;margin-left:18.0pt;margin-bottom:.0001pt;text-indent:-18.0pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:Symbol;
color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'>I’d have made the necessary connection settings to allow the
application servers to connect to the DB on the loadbalancer.</span></p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<p class=MsoListParagraph style='margin-top:0cm;margin-right:0cm;margin-bottom:
0cm;margin-left:18.0pt;margin-bottom:.0001pt;text-indent:-18.0pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:Symbol;
color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'>I’d pull and display data from the DB, and interact with a
webserver, probably using something lightweight like json. </span></p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<p class=MsoListParagraph style='margin-top:0cm;margin-right:0cm;margin-bottom:
0cm;margin-left:18.0pt;margin-bottom:.0001pt;text-indent:-18.0pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:Symbol;
color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'>I’d have done all of this from a linux machine, rather than this
stock windows laptop, although I have to say, Window’s have vastly improved
their Command Prompt. </span></p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<p class=MsoListParagraph style='margin-top:0cm;margin-right:0cm;margin-bottom:
0cm;margin-left:18.0pt;margin-bottom:.0001pt;text-indent:-18.0pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:Symbol;
color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'>Changed the DNS settings to give it a proper hostname. </span></p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'> </span></p>
<p class=MsoListParagraph style='margin-top:0cm;margin-right:0cm;margin-bottom:
0cm;margin-left:18.0pt;margin-bottom:.0001pt;text-indent:-18.0pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:Symbol;
color:black'>·<span style='font:7.0pt "Times New Roman"'>
</span></span><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'>I’d have used salt/chef/puppet or any other configuration tool out
there. However, there are tonnes of examples of this exercise across the web
that do this task with those tools. I wanted to learn from this experience,
rather than to replicate somebody else’s work, so I have gone with Ansible.</span></p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:9.5pt;font-family:"Garamond",serif;
color:#222222'> </span></p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:9.5pt;font-family:"Garamond",serif;
color:#222222'> </span></p>
<p class=MsoNormal style='margin-bottom:0cm;margin-bottom:.0001pt;line-height:
normal;background:white'><span style='font-size:10.0pt;font-family:"Garamond",serif;
color:black'><br>
Optional Extra credit:<br>
· Have the webapp be dynamic - e.g. perform a db query for inclusion in the
response (such as picking a random quote from a database) or calling an API of
your choice(e.g. weather).<br>
=> Any additional resources (e.g. a shared db server) should be set up by
the Vagrant file <br>
· Include a section for possible improvements and compromises made during the
development of your solution<br>
<br>
</span></p>
<p class=MsoNormal><span style='font-family:"Garamond",serif'> </span></p>
</div>
</body>
</html>