liveBook · Manning

Puppet

As explained in Acing the CCNA Exam: Volume 2 Advanced Networking and Security

Puppet is an infrastructure automation and configuration management tool that commonly uses declarative resource descriptions and managed-node agents.

Puppet is an infrastructure-as-code tool for configuration management. Written in Ruby, it uses managed-node agents that periodically pull configuration from a central Puppet master and apply changes toward a declared desired state. section 25.2.3

Key characteristics distinguish Puppet from other infrastructure automation tools:

  • Uses an agent-based architecture: each managed device requires installed Puppet software. section 25.2.3
  • Uses a pull model: agents connect to the Puppet master to retrieve configuration instead of receiving server-initiated pushes. section 25.2.3
  • Uses the declarative Puppet DSL to describe the desired infrastructure state and determine necessary compliance changes. section 25.2.3
  • Fits configuration management more directly than network management because some network devices do not support a Puppet agent. section 25.2.3

Declarative service resource

service { 'ssh': ensure => running, } This resource declares that the SSH service should be running; the agent applies the required change on the managed node. section 25.2.3

service { 'ssh':        #1
  ensure => running,    #1
}                       #1

Inspect the compact Puppet DSL resource that declares a running SSH service. section 25.2.3

How Acing the CCNA Exam: Volume 2 Advanced Networking and Security covers it

How deep it goes
Defines Ruby, agents, Puppet master, pull behavior, and declarative DSL, but stops short of detailed implementation internals.
Examples
Uses a Puppet DSL service resource that ensures SSH is running.
What you can do after
Evaluate Puppet against other IaC tools by identifying its agent-based, pull, Ruby, and declarative characteristics.
How it connects
Contrasts agent-based pull configuration management with Ansible, Terraform, and Chef through declarative and procedural models.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Acing the CCNA Exam: Volume 2 Advanced Networking and Security. The section links point to the parts of the book it draws on.