# frozen_string_literal: true # Custom Hiera Plugin # This plugin returns static data for testing purposes Puppet::Functions.create_function(:'custom_hiera_plugin::data_hash') do def data_hash(_options, _context) # Return a simple hash with the required key-value pair { 'custom_hiera_plugin::var1' => 'foo' } end end