@@ -17,6 +17,14 @@ We _could_ do all these things manually,
17
17
but a key insight of the modern infrastructure management
18
18
is that automation really pays off in reducing maintenance burdens.
19
19
20
+ // SEBASTIAN: IMO, above statement is not strong enough (my opinion)
21
+ // I'd add something that software development nowadays is made in short cycles with frequent deployments
22
+ // and automation is a MUST - the earlier one invests into it, the faster they can focus on doing what's
23
+ // actually giving value.
24
+ //
25
+ // ALSO... to reassure readers - automating anything requires deep understanding, so they will not miss anything.
26
+ // Perhaps this is even more important. When I first read this, I was like "ohhh, I'm gonna miss some fun!"
27
+
20
28
It's also key to making sure our tests give us true confidence over our deployments.
21
29
If we go to the trouble of building a staging server,footnote:[
22
30
What I'm calling a "staging" server, some people would
@@ -121,6 +129,7 @@ They're unlikely to ever go away,
121
129
and knowing a bit about them will get you some respect
122
130
from all the grizzled dinosaurs out there.
123
131
132
+ // SEBASTIAN: Nice, and seem-to-be timeless choice!
124
133
125
134
126
135
==== Spinning Up a Server
@@ -750,6 +759,11 @@ but I wanted to keep this (already long) chapter as simple as possible.
750
759
*******************************************************************************
751
760
752
761
762
+ // SEBASTIAN: I feel the above section would make more sense if it was mentioned waaay earlier.
763
+ // I must say I got lost while reading about Chef, Puppet and suddenly I see some Ansible examples
764
+ // without any explanation how Ansible works, any diagrams etc.
765
+ // I'd also appreciate seeing some example of SSH first as this is a prerequisite to
766
+ // using Ansible. Currently, there are too many "open loops" and I think this chapter is hard to follow.
753
767
754
768
Let's run the latest version of our playbook and see how our tests get on:
755
769
@@ -808,6 +822,8 @@ selenium.common.exceptions.WebDriverException: Message: Reached error page:
808
822
about:neterror?e=connectionFailure&u=http%3A//staging.ottg.co.uk/[...]
809
823
----
810
824
825
+ // SEBASTIAN: It's awesome that by this moment by using `TEST_SERVER` one is able to run tests against "staging". Just wow!
826
+
811
827
That `neterror` makes me think it's another networking problem.
812
828
Let's try `curl` locally:
813
829
@@ -1170,8 +1186,14 @@ which are a fairly typical set of steps for deployment in general
1170
1186
In more advanced setups, you might be trying to achieve zero-downtime deploys,
1171
1187
and looking into techniques like red-green deployments.
1172
1188
1189
+ // SEBASTIAN: Is red-green deployment a thing? I must admit it's the first time
1190
+ // I see the name and so far I've only know blue-green. I also read there's red-black deployment,
1191
+ // but am I looking for this wrong, so I cannot find anything about red-green? 🤔
1192
+
1173
1193
// TODO is there a better word than "switching across"?
1174
1194
1195
+ // SEBASTIAN: How about simply "updating" or "changing"?
1196
+
1175
1197
Every single aspect of deployment can and probably should be automated.
1176
1198
Here are a couple of general principles to think about
1177
1199
when implementing infrastructure-as-code:
@@ -1187,5 +1209,6 @@ Declarative::
1187
1209
rather than _how_ we should get there.
1188
1210
This goes hand-in-hand with the idea of idempotency above.
1189
1211
1212
+ // SEBASTIAN: Okay, this summary is goldie 👌
1190
1213
1191
1214
*******************************************************************************
0 commit comments