Encryption-enabling our Jerakia lookups

We enable encryption by using the output_filter method to our lookup in our policy:

policy :default do   lookup :default do     datasource :file, {       :format     => :yaml,       :docroot    => "/var/lib/jerakia",       :searchpath => [         "hostname/#{scope[:fqdn]}",         "environment/#{scope[:environment]}",         "common",        ],     }     output_filter :encryption   end end

This instructs Jerakia to pass everything to the encryption filter and to match all the retrieved values against the signature of the encryption provider. If a match is made, the encryption provider will be used to decrypt the value before it is returned.

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.