7
Jan

How to define a Puppet Resource

A Puppet resource is a fundamental unit for modelling system configurations. Each resource describes some aspect of the system, e.g. Service, Package, File, etc. The block of Puppet code that describes a resource is called resource declaration.

Every resource has a type, title and set of attributes.

Syntax:

1
 type {“title”: property => value, }


Example:
1
 package {“apache2”: ensure => installed, }
Continue reading