Service resources
Service resources are environment-wide information pools filled and viewed by application components. Service resources work like exported resources, providing information about other nodes from PuppetDB. The uniqueness of service resources is found in their building of dependencies between nodes. Service resources are declared as Puppet types, written in Ruby. Providers are optional, and allow for exported resource availability tests.
Service resource types provide a framework of information that can be stored and transported via application orchestration's consume
and export
metaparameters. The type is required for a service resource, and declares the structure of the information using Ruby code. They are always stored in modules at lib/puppet/type/<resource>.rb
, and will be sent to all nodes in an environment when deployed, but will not be actioned upon by nodes not using the resource. The following sample type could encompass the database resource exported by...