Creating your default Jerakia policy

All requests for data from Jerakia are processed according to the so-called policy. The filenames for policies should be the same as the actual name of the policy, and are loaded from the directory indicated by the policydir setting in your jerakia.yaml configuration file. If a certain policy name is not indicated by the lookup request, then the name default is used. Let's create the default policy, as follows:

$ mkdir /etc/jerakia/policy.d$ vim /etc/jerakia/policy.d/default.rb

A Jerakia policy is a container of the so-called lookup, which is performed in the indicated order. A lookup consists of a datasource that should be used for the data lookup, along with any plugin functions.

There follows a simple ...

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.