1
00:00:00,000 --> 00:00:10,920
In this video, you will learn about Puppet core components and working.

2
00:00:10,920 --> 00:00:11,920
So what is Puppet?

3
00:00:11,920 --> 00:00:14,480
Well, Puppet is an alternative to Ansible.

4
00:00:14,480 --> 00:00:18,299
It was really big before Ansible became so popular.

5
00:00:18,299 --> 00:00:23,760
In Puppet, the Puppet master is a control node and that is where the manifests are stored.

6
00:00:23,760 --> 00:00:28,760
And the manifests describe the desired state of the managed systems.

7
00:00:28,760 --> 00:00:33,520
The Puppet agent runs on managed nodes and it is used by the master which pushes configuration

8
00:00:33,520 --> 00:00:34,599
to it.

9
00:00:34,599 --> 00:00:39,020
And here we have two fundamental differences between Puppet and Ansible.

10
00:00:39,020 --> 00:00:43,160
Puppet requires an agent which is software that you need to install on the managed nodes

11
00:00:43,160 --> 00:00:47,520
and Puppet master can push configuration to the agent.

12
00:00:47,520 --> 00:00:51,720
The manifests define the desired state of the managed nodes and they are like the playbooks

13
00:00:51,720 --> 00:00:53,240
in Ansible.

14
00:00:53,240 --> 00:00:57,799
And a key feature of Puppet is that it ensures continuous compliance by pushing configuration

15
00:00:57,799 --> 00:01:01,040
to agents on a regular basis.

16
00:01:01,040 --> 00:01:06,760
You can check out the core's Git repository for an example Puppet file.

17
00:01:06,760 --> 00:01:08,440
Let's do that.

18
00:01:08,440 --> 00:01:10,239
So here we have the Puppet.pp.

19
00:01:10,239 --> 00:01:14,360
.pp is the standard extension for a Puppet file.

20
00:01:14,360 --> 00:01:21,519
This is an extremely simple Puppet file which defines a site.pp where we ensure that the

21
00:01:21,519 --> 00:01:25,919
web server is installed and the web server is running.

22
00:01:25,919 --> 00:01:29,839
Now Puppet files are not using YAML as in Ansible.

23
00:01:29,839 --> 00:01:32,400
They use a significantly more complex syntax.

