DevNet Associate DEVASC 200-901 Official Certification Guide by Adrian Iliesiu (z-lib.org)

(andrew) #1

current state of the device match, no change is made. A
report is sent back to the Master after the agent performs
these functions.


The Puppet manifests are standard text files that contain
Puppet DSL code and have the .pp extension. They
contain declarative configuration and are descriptive and
easy to read. The following is an example of a manifest
used to ensure that the interface Ethernet 1/3 is in Layer
2, or switching, mode:


Click here to view code image


# Configuring the interface using Puppet
cisco_interface { "Ethernet1/3" :
switchport_mode => enabled,
}

Puppet Forge is a cloud-based repository that contain
manifests and modules contributed by the community.
Puppet modules are collections of files and directories
that contain Puppet manifests. When you download
modules from Puppet Forge, with each module you get a
group of subdirectories that have in them all the
components that are needed to specify the desired state.


Chef


Chef is another popular open-source configuration
management solution that is similar to Puppet. It is
written in Ruby, uses a declarative model, is agent based,
and refers to its automation instructions as recipes and
cookbooks. Several components are part of the Chef Infra
offering, as shown in Figure 15-5.

Free download pdf