An overview of different terms used throughout this document, as well as in upstream documentation.
In the following glossary of terms, whenever we speak of a term and refer to that exact term it will appear italic.
3.1. Language & Functions
Because Puppet uses its very own declarative language, here's a set of terms related to Puppets Language hueristics, and Puppets integrated functions.
An example
class could be
class sshd, grouping all resources related to configuring the SSH server together so that in a
node manifest you would only need to
include sshd to make sure your SSH server is configured properly, the service is started and enabled on boot.
Such a class would look like something similar to:
class sshd {
package { "openssh-server":
ensure => installed
}
file { "/etc/ssh/sshd_config":
owner => "root",
group => "root",
mode => "640",
source => "puppet:///ssh/sshd_config"
require => Package["openssh-server"],
notify => Service["sshd"]
}
service { "sshd":
enable => true,
ensure => running,
require => File["/etc/ssh/sshd_config"]
}
}
node 'node1.example.org' {
include sshd
}
Simple inheritance often limits how much flexibility you have in nesting parents onto childs.
plusignment operator
realize
recipe
subclass
template
template class