Application definition

Application definitions look a lot like a defined resource, but are also similar to a traditional Puppet profile. They describe a collection of components that make an entire system, but unlike profiles, are not tied down to a single node. These application definitions describe a configured state of one or more nodes, broken down by application components. 

Application definitions will resemble defined types, with a few key differences:

  • They are titled application instead of define.
  • Each resource must be name spaced within the module:
# Application used instead of 'class' or 'define'application 'example' (  $var,) {# app1 exports its database configuration items  example::app1 {    config => $var, export => Database['app1'], ...

Get Mastering Puppet 5 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.