WEBVTT

1
00:00.000 --> 00:05.280
Okay friends, so before we begin actually tempotizing some configurations, what

2
00:05.280 --> 00:08.320
I first want to do is to create some variable files

3
00:08.320 --> 00:12.000
and we're going to be able to call those variables when rendering the actual

4
00:12.000 --> 00:12.880
template itself.

5
00:12.880 --> 00:16.460
So what we'll do here is, and let me just get my pen up, is we'll write some

6
00:16.460 --> 00:18.160
really simple group files.

7
00:18.160 --> 00:23.300
Or rather should I say group_verse variables, as well as some host_verse, and

8
00:23.300 --> 00:26.000
we'll actually have some of these in a nested form.

9
00:26.000 --> 00:29.370
Now to keep things fun and light, we're not going to be concerned about

10
00:29.370 --> 00:31.680
rendering Linux configurations quite just yet.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

10
00:29.370 --> 00:31.680
rendering Linux configurations quite just yet.

11
00:31.680 --> 00:35.680
We'll just create some dummy config and render the actual template itself.

12
00:35.680 --> 00:38.980
You'll get to see what I mean. So let's go and do that then. So what I will do

13
00:38.980 --> 00:43.440
here is if I do an LS, we can see the contents of our directory structure.

14
00:43.440 --> 00:47.630
If I go in and do a CD into host_verse. So inside of this particular file, what

15
00:47.630 --> 00:50.560
I'm going to do is just make sure I've got some host variables.

16
00:50.560 --> 00:54.330
They're just align with the information in my inventory. So I have a blue box

17
00:54.330 --> 00:58.410
and a yellow box machine. So what I will do is I'll just say touch blue box dot

18
00:58.410 --> 00:58.800
yml,

19
00:58.800 --> 01:03.950
as well as touch yellow box dot yml as well. So the first one I will go into
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

19
00:58.800 --> 01:03.950
as well as touch yellow box dot yml as well. So the first one I will go into

20
01:03.950 --> 01:05.760
will be the blue box right here.

21
01:05.760 --> 01:09.840
Let's do i for insert mode, have a 3- to denote our yaml file.

22
01:09.840 --> 01:14.120
So let's just create a key called, oh I don't know let's say device_roll. It

23
01:14.120 --> 01:15.520
doesn't actually matter quite so much.

24
01:15.520 --> 01:20.450
And we'll just give it a name and we'll just say blue box web. We'll also have

25
01:20.450 --> 01:24.000
a type key and this specifies that this is a web server.

26
01:24.000 --> 01:27.550
So let's do a similar thing over on the other device here. So let's go into

27
01:27.550 --> 01:30.400
yellow box. In insert mode, have our free hyphens at the top.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

27
01:27.550 --> 01:30.400
yellow box. In insert mode, have our free hyphens at the top.

28
01:30.400 --> 01:35.360
We'll have our device_roll key, have a name, and I'll just say yellow_db. Okay.

29
01:35.360 --> 01:40.200
And the type here in this case is going to be a database. So basically we're

30
01:40.200 --> 01:44.550
pretending that the yellow box is our database and the blue box is a web server

31
01:44.550 --> 01:44.720
.

32
01:44.720 --> 01:48.510
Really quite simple. So to escape colon wq to write and quit, what I'm now

33
01:48.510 --> 01:51.680
going to do is go into my group file right here.

34
01:51.680 --> 01:55.570
If I do an ls, what I want to do is to create a group variable for one of my

35
01:55.570 --> 01:58.400
groups. In this case here, I will just use the all group.

36
01:58.400 --> 02:03.280
So I'll say touch all dot yml and we'll just go into that particular file.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

36
01:58.400 --> 02:03.280
So I'll say touch all dot yml and we'll just go into that particular file.

37
02:03.280 --> 02:06.780
And we'll have a three hyphens at the top. Once again, I'll just create a key

38
02:06.780 --> 02:08.800
called let's maybe say domain info.

39
02:08.800 --> 02:14.040
And then I'll have the name, let's just call this CBT nuggets land and the

40
02:14.040 --> 02:16.800
location is going to be in Oregon and the United States.

41
02:16.800 --> 02:20.190
So really super basic information right now. We have created some very, very

42
02:20.190 --> 02:22.560
simple host and group variable files.

43
02:22.560 --> 02:25.680
What we now want to do is to learn how we can actually populate the values

44
02:25.680 --> 02:29.360
within these files by utilizing our ginger two templates.

45
02:29.360 --> 02:32.400
So let's talk about that in the very next video.
WEBVTT
X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:900000

45
02:29.360 --> 02:32.400
So let's talk about that in the very next video.
