WEBVTT

1
00:00.000 --> 00:03.920
So now that we've talked about what we can expect from the actual examination,

2
00:03.920 --> 00:07.640
what I now want to do to walk you through the building of our little lab that

3
00:07.640 --> 00:08.160
we want to use

4
00:08.160 --> 00:12.160
to repair ourselves for the actual exam. Okay, so now we understand the general

5
00:12.160 --> 00:12.720
format of the

6
00:12.720 --> 00:16.010
examination. We've discussed some of the tips that we want to use to ensure

7
00:16.010 --> 00:17.280
that we have the best

8
00:17.280 --> 00:21.210
possible chance to actually pass the exam. What I now want to do is to walk you

9
00:21.210 --> 00:22.000
through what is

10
00:22.000 --> 00:25.790
going to be our little lab environment for running through our little exam

11
00:25.790 --> 00:27.440
preparation. So once again,

12
00:27.440 --> 00:31.260
what we're going to have is we're going to have three different nodes on our
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

12
00:27.440 --> 00:31.260
what we're going to have is we're going to have three different nodes on our

13
00:31.260 --> 00:32.000
network.

14
00:32.000 --> 00:35.760
One device is going to be the actual Ansible control node, which is what you

15
00:35.760 --> 00:36.400
actually see on

16
00:36.400 --> 00:40.730
your screen right here. This is my Ansible graphical user interface utilizing

17
00:40.730 --> 00:42.320
Red Hat Enterprise Linux.

18
00:42.320 --> 00:47.150
So this one here is actually using the graphical user interface installation.

19
00:47.150 --> 00:47.680
Now throughout this

20
00:47.680 --> 00:51.520
course, you will have noticed to keep things as simple as possible. And as

21
00:51.520 --> 00:52.720
graphically pleasing

22
00:52.720 --> 00:57.850
as possible, I actually had two other devices in my network, both of which were

23
00:57.850 --> 00:59.040
a graphical user

24
00:59.040 --> 01:04.080
interface. One was the blue box and the other one was known as the yellow box.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

24
00:59.040 --> 01:04.080
interface. One was the blue box and the other one was known as the yellow box.

25
01:04.080 --> 01:05.120
Now in this upcoming

26
01:05.120 --> 01:08.550
little mock preparation that we're going to be doing, I'm not going to be

27
01:08.550 --> 01:09.680
managing the graphical

28
01:09.680 --> 01:13.530
user interfaces. That is because in the actual examination, we're going to be

29
01:13.530 --> 01:14.720
working with devices

30
01:14.720 --> 01:18.590
that have a minimal installation. So all I'm going to do is in the meantime, I

31
01:18.590 --> 01:19.600
'm going to create two

32
01:19.600 --> 01:23.660
new virtual machines. One can be called, let's maybe say device one, and the

33
01:23.660 --> 01:24.320
other one can be

34
01:24.320 --> 01:27.860
called device number two. And like I say, it's just going to be a minimal

35
01:27.860 --> 01:29.680
installation. So a pure

36
01:29.680 --> 01:33.620
command line interface environments, because quite honestly, this is a type of
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

36
01:29.680 --> 01:33.620
command line interface environments, because quite honestly, this is a type of

37
01:33.620 --> 01:34.320
environment,

38
01:34.320 --> 01:38.290
we're going to be testing our playbooks against any actual examination. So it

39
01:38.290 --> 01:39.120
does make sense that

40
01:39.120 --> 01:43.930
we are ensuring that our actual playbooks are operating as expected. Now for

41
01:43.930 --> 01:45.040
the purposes of

42
01:45.040 --> 01:49.120
configuring some storage solutions, what I'm also going to do is I'm also going

43
01:49.120 --> 01:50.640
to add another disk

44
01:50.640 --> 01:54.560
to my first device right here. Okay, so let me show you what this actually

45
01:54.560 --> 01:55.520
looks like. So in the

46
01:55.520 --> 01:58.930
interest of time, I'm not going to walk through the same type of installation

47
01:58.930 --> 01:59.840
that we saw before

48
01:59.840 --> 02:03.240
at the very beginning of this course. All I've done is made a slight difference
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

48
01:59.840 --> 02:03.240
at the very beginning of this course. All I've done is made a slight difference

49
02:03.240 --> 02:04.400
in the selection

50
02:04.400 --> 02:08.050
of choosing minimal installation versus graphical installation with respect to

51
02:08.050 --> 02:09.200
my managed devices.

52
02:09.200 --> 02:13.770
Here is device number one. And here is device number two. Both, as you can see

53
02:13.770 --> 02:14.480
here are these

54
02:14.480 --> 02:18.960
boring plain old black and white text environments. Number three, respect to my

55
02:18.960 --> 02:19.840
rail control node,

56
02:19.840 --> 02:23.520
I'm actually using the same machine that I used before. All I've done is I've

57
02:23.520 --> 02:24.640
reverted it back

58
02:24.640 --> 02:28.310
to an initial snapshot. So it doesn't actually have any answer once all done it

59
02:28.310 --> 02:29.120
. It doesn't have

60
02:29.120 --> 02:32.570
any configuration files. I'm going to walk through all of that from the
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

60
02:29.120 --> 02:32.570
any configuration files. I'm going to walk through all of that from the

61
02:32.570 --> 02:33.680
beginning. So if you're

62
02:33.680 --> 02:37.070
following along, pretty much have your answer control node at its very basic

63
02:37.070 --> 02:37.920
stage, just have

64
02:37.920 --> 02:41.390
your installation of your graphical user interface, and then create these new

65
02:41.390 --> 02:42.320
two graphical user

66
02:42.320 --> 02:46.050
interfaces that you're going to manage. Now in my case, in all my three

67
02:46.050 --> 02:47.600
machines, I have created a

68
02:47.600 --> 02:52.480
device or rather an account on each of the devices called nugget user. And this

69
02:52.480 --> 02:52.880
user

70
02:52.880 --> 02:57.150
has actually got super user access. So it is going to be able to run those

71
02:57.150 --> 02:58.080
admin commands.

72
02:58.080 --> 03:01.490
Now there is nothing special about this particular username. It's just a simple
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

72
02:58.080 --> 03:01.490
Now there is nothing special about this particular username. It's just a simple

73
03:01.490 --> 03:02.080
username that I

74
03:02.080 --> 03:05.980
happen to choose. If you want to choose a different one, then feel free to do

75
03:05.980 --> 03:07.280
so. All I would say

76
03:07.280 --> 03:11.050
is to ensure that whatever name you choose, have it present on all three

77
03:11.050 --> 03:12.320
devices and make sure

78
03:12.320 --> 03:16.280
that that particular user is a pseudo or user. So it can use the pseudo

79
03:16.280 --> 03:17.600
commands. So with that

80
03:17.600 --> 03:21.680
now done, what I'm first going to do here is just for posterity, I will just

81
03:21.680 --> 03:23.120
actually change the name

82
03:23.120 --> 03:26.990
of this device here from red box. This is I'm not using this color based lab

83
03:26.990 --> 03:27.920
anymore red box,

84
03:27.920 --> 03:32.720
blue box yellow box. Let me just call this, or just a pseudo hostname cta set
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

84
03:27.920 --> 03:32.720
blue box yellow box. Let me just call this, or just a pseudo hostname cta set

85
03:32.720 --> 03:33.760
hyphen hostname.

86
03:33.760 --> 03:36.480
And I'll just change this to control because it's going to be the control mode

87
03:36.480 --> 03:37.520
and I'll type in my

88
03:37.520 --> 03:40.740
super user password. Now it looks like nothing has actually changed. But if I

89
03:40.740 --> 03:41.680
just type the command

90
03:41.680 --> 03:46.280
hostname, we can see it has changed. If I X out this particular terminal, and I

91
03:46.280 --> 03:46.960
just open up a

92
03:46.960 --> 03:51.450
fresh one like so, now you'll notice the actual username here or rather the

93
03:51.450 --> 03:52.480
device name has

94
03:52.480 --> 03:55.690
actually changed. So the very first thing that I want to do is I want to be

95
03:55.690 --> 03:57.040
able to configure my

96
03:57.040 --> 04:01.110
host to have my DNS mappings to keep things nice and simple. So all I will do
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

96
03:57.040 --> 04:01.110
host to have my DNS mappings to keep things nice and simple. So all I will do

97
04:01.110 --> 04:02.000
here is I will say

98
04:02.000 --> 04:06.530
pseudo them, it's a hosts, and I'll type in my password here. Now over on my

99
04:06.530 --> 04:07.760
device one, if I type

100
04:07.760 --> 04:14.410
IP adder, we can actually see the IP address here is 192.168.160.136. And if I

101
04:14.410 --> 04:15.840
just great for this to keep

102
04:15.840 --> 04:19.950
things nice and simple, there is IP address right there. So I want to put that

103
04:19.950 --> 04:21.360
in and map it to

104
04:21.360 --> 04:25.390
my hostname of device one. Similarly over on device number two, we can see the

105
04:25.390 --> 04:26.480
address ends in

106
04:26.480 --> 04:34.390
.137. Let's also map that. So I will just say 192.168.168.136. And this is
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

106
04:26.480 --> 04:34.390
.137. Let's also map that. So I will just say 192.168.168.136. And this is

107
04:34.390 --> 04:35.840
going to map to device number

108
04:35.840 --> 04:42.730
one. And then 192.168.168.137 is going to map device number two. So if I just

109
04:42.730 --> 04:43.520
write and quit,

110
04:43.520 --> 04:48.220
and I just say ping device number one right here and to enter, we can see we do

111
04:48.220 --> 04:49.120
get a response.

112
04:49.120 --> 04:53.090
If I press control C, R what we can change it to device number two, we also get

113
04:53.090 --> 04:53.760
a response from

114
04:53.760 --> 04:58.210
device, the mapping is working correctly. So check it out then. What I now want

115
04:58.210 --> 04:58.960
to do is I want to

116
04:58.960 --> 05:03.090
create an answerable account on every device in the network that is the control
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

116
04:58.960 --> 05:03.090
create an answerable account on every device in the network that is the control

117
05:03.090 --> 05:03.920
node and the two

118
05:03.920 --> 05:08.540
managed nodes. And we want to specify that we can have super user privileges.

119
05:08.540 --> 05:09.280
And the answerable

120
05:09.280 --> 05:13.540
is going to be able to log in to these devices utilizing the SSH keys. So the

121
05:13.540 --> 05:14.640
very first thing

122
05:14.640 --> 05:17.940
that I'm going to have to do here is on my control node, I'm going to add a

123
05:17.940 --> 05:19.280
user called answerable.

124
05:19.280 --> 05:23.600
And then I will say pseudo past wd for the answerable user to actually give the

125
05:23.600 --> 05:24.480
account a password.

126
05:24.480 --> 05:27.440
And I'll just give it the password of answerable and they'll confirm it as

127
05:27.440 --> 05:28.400
answerable. And now

128
05:28.400 --> 05:31.570
what I want to do is I want to give this particular account a super user access
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

128
05:28.400 --> 05:31.570
what I want to do is I want to give this particular account a super user access

129
05:31.570 --> 05:32.560
. So I can say pseudo

130
05:32.560 --> 05:37.350
vim, it's a pseudo words dot D. And I will just specify the name of the account

131
05:37.350 --> 05:38.080
I want to be

132
05:38.080 --> 05:41.820
using so I'll say answerable. Now inside of here, I'm just going to say answer

133
05:41.820 --> 05:42.640
able, which is the

134
05:42.640 --> 05:46.210
name of the account. And to give it all of the super user access, I will say

135
05:46.210 --> 05:47.120
all equals and then

136
05:47.120 --> 05:51.930
in parentheses, all, and then I'll say no past wd column. All this is going to

137
05:51.930 --> 05:53.040
allow us to run

138
05:53.040 --> 05:57.760
the super user command without having to enter a password. So let's just write

139
05:57.760 --> 05:58.960
and quit. So now

140
05:58.960 --> 06:03.260
if I just happen to say SU minus answerable, we substitute user to the answer
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

140
05:58.960 --> 06:03.260
if I just happen to say SU minus answerable, we substitute user to the answer

141
06:03.260 --> 06:04.000
block out when we

142
06:04.000 --> 06:08.140
type in our answerable password. And now we can see here I am answerable on the

143
06:08.140 --> 06:09.120
control node. Now

144
06:09.120 --> 06:11.760
what you want to ensure is that you have answerable installed on the system.

145
06:11.760 --> 06:12.560
Again, we've seen how

146
06:12.560 --> 06:15.620
to do this. So I'm not going to bore you by going through the installation all

147
06:15.620 --> 06:16.560
over again. Right now

148
06:16.560 --> 06:19.990
we can act to see my version as well as what my configuration file is. But what

149
06:19.990 --> 06:21.200
I want to do though,

150
06:21.200 --> 06:25.140
as I actually want to specify a particular inventory file that you're going to

151
06:25.140 --> 06:26.320
create. So take this

152
06:26.320 --> 06:29.650
particular part much like a little challenge that you could expect to see

153
06:29.650 --> 06:30.960
within the examination.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

153
06:29.650 --> 06:30.960
within the examination.

154
06:30.960 --> 06:33.840
So here's what I'm asking you to do. What I want you to do is to create an

155
06:33.840 --> 06:34.320
answerable

156
06:34.320 --> 06:38.630
inventory file and inside of it, I want you to have three different groups. So

157
06:38.630 --> 06:39.280
what we want to have

158
06:39.280 --> 06:44.100
is we want to have a test group as well as a production group. Now inside of

159
06:44.100 --> 06:44.880
the test group,

160
06:44.880 --> 06:49.760
I want you to place the device one host. Okay. So device one will be a member

161
06:49.760 --> 06:50.640
of that group.

162
06:50.640 --> 06:55.240
And similarly, device two should be a member of the production group. Now here

163
06:55.240 --> 06:55.680
's the thing,

164
06:55.680 --> 07:00.230
both of these groups, the test and production should actually belong to a
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

164
06:55.680 --> 07:00.230
both of these groups, the test and production should actually belong to a

165
07:00.230 --> 07:01.040
parent group. And

166
07:01.040 --> 07:05.830
this group is simply going to be called rel_service. So for now, what I'm going

167
07:05.830 --> 07:06.640
to do is to pause the

168
07:06.640 --> 07:11.260
video and at home, I want you to follow along and complete this part of the

169
07:11.260 --> 07:12.320
actual task.
