You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// RITA: In this intro, please mention that you'll be using Ansible. Not only will it prep the reader, but it'll set you up to say "(or "become" in Ansible terminology)" in the User Accounts, SSH, and Privileges section before we actually get to the Ansible section.
9
10
((("deployment", "automating with Ansible", id="Dfarbric11")))
10
11
((("infrastructure as code")))
11
12
In this chapter we're going to spin up an actual server,
@@ -27,12 +28,14 @@ we want to make sure that it's as similar as possible to the production environm
27
28
By automating the way we deploy, and using the same automation for staging and prod,
28
29
we give ourselves much more confidence.
29
30
30
-
The buzzword for automating your deployments these days is "Infrastructure as Code".
31
+
The buzzword for automating your deployments these days is "Infrastructure as Code" (IaC).
32
+
// RITA: OK to add the acronym IaC? It's common enough.
31
33
34
+
// RITA: Perhaps move this to the It Worksss section so the reader sees it when their site actually goes live?
32
35
NOTE: Why not ping me a note once your site is live on the web,
@@ -122,7 +125,7 @@ from all the grizzled dinosaurs out there.
122
125
123
126
==== Spinning Up a Server
124
127
125
-
I'm not going to dictate how you do this--whether
128
+
I'm not going to dictate how you spin up a server--whether
126
129
you choose Amazon AWS, Rackspace, Digital Ocean, your own server in a data centre,
127
130
or a Raspberry Pi in a cupboard under the stairs,
128
131
any solution should be fine, as long as:
@@ -150,21 +153,21 @@ NOTE: Some people get to this chapter, and are tempted to skip the domain bit,
150
153
Don't do this.
151
154
It's _not_ the same, and you'll have more difficulty following the instructions,
152
155
which are complicated enough as it is.
153
-
If you're worried about cost, have a look at the link above for free options.
156
+
If you're worried about cost, have a look at the guide I wrote for free options.
154
157
((("getting help")))
155
-
158
+
// RITA: In general, please avoid saying above/below, as the final layout of the book will be determined later during Production. So, what's above now may end up on the previous page. It's better to reword it.
156
159
157
160
==== User Accounts, SSH, and Privileges
158
161
159
-
In these instructions, I'm assuming that you have a nonroot user account set up,
162
+
In the following instructions, I'm assuming that you have a nonroot user account set up,
160
163
and that it has "sudo" privileges,
161
164
so whenever we need to do something that requires root access, we use sudo,
162
165
(or "become" in Ansible terminology),
163
166
and I'm explicit about that in the various instructions that follow.
164
167
165
168
My user is called "elspeth", but you can call yours whatever you like!
166
-
Just remember to substitute it in all the places I've hardcoded it below.
167
-
See the guide linked above if you need tips on creating a sudo user.
169
+
Just remember to substitute it in all the places I've hardcoded it.
170
+
See the guide I wrote if you need tips on creating a sudo user.
168
171
169
172
170
173
.Security
@@ -258,10 +261,10 @@ rather than specifying a procedural series of steps to be followed one by one.
Take a look at the https://docs.ansible.com/ansible/latest/installation_guide/intro_installation.html [documentation] for instructions on how to install Ansible/
265
+
// RITA: Please anchor all URLs to descriptive text.
263
266
264
-
The simplest thing to do is to install them into the virtualenv
267
+
The simplest thing to do is to install Ansible into the virtualenv
265
268
on our local machine:
266
269
267
270
[subs="specialcharacters,quotes"]
@@ -329,14 +332,14 @@ for.
329
332
330
333
<3> Each module then provides a bunch of parameters which control how it works.
331
334
Here we specify the `name` of the package we want to install ("docker")
332
-
and tell it update its cache first, which is required on a fresh server.
335
+
and tell it to update its cache first, which is required on a fresh server.
333
336
334
337
Most Ansible modules have pretty good documentation,
// RITA: Please expand this intro sentence. Here's how to do what?
917
922
Here's how
918
923
919
924
[role="sourcecode"]
@@ -962,6 +967,8 @@ Here's how
962
967
963
968
=== It workssss
964
969
970
+
// RITA: I'd prefer to call the section "It works!" with an exclamation point or two, but OK. Please expand the first sentence of the section to be more than just "Hooray." What was achieved? What does the following result indicate?
971
+
965
972
Hooray
966
973
967
974
[role="small-code"]
@@ -1003,7 +1010,7 @@ Docker into the mix, should things not go according to plan:
1003
1010
This is a good place to go check on environment variables,
1004
1011
port mappings, and exactly which image was running, for example.
1005
1012
1006
-
- And you can inspect the image with
1013
+
- You can inspect the image with
1007
1014
`docker image inspect superlists`.
1008
1015
You might need this to check the exact image hash,
0 commit comments