Node examples

 

Node definition

A node definition or node statement is a block of Puppet code that is included only in matching nodes’ catalogs. This allows you to assign specific configurations to specific nodes.

node 'www1.example.com' {
  include common
  include apache
  include squid
}

Node names in node definitions can also be given as regular expressions.

node /^www\d+$/ {
  include common
}

For details about node definition usage and syntax, see Node definitions.