lib/bolt/pal.rb
# PALError is used to convert errors from executing puppet code into
# Bolt::Errors
PALError is used to convert errors from executing puppet code into
Bolt::Errors
PALError is used to convert errors from executing puppet code into Bolt :: Errors
def plan_hierarchy_lookup(key, plan_vars: {})
      with_puppet_settings do
        in_bolt_compiler(compiler_params: { variables: plan_vars }) do |compiler|
          compiler.call_function('lookup', key)
        end
      rescue Puppet::Error => e
        raise PALError.from_error(e)
      end
    end
def plan_hierarchy_lookup ( key , plan_vars : { } ) with_puppet_settings do in_bolt_compiler ( compiler_params : { variables : plan_vars } ) do | compiler | compiler . call_function ( 'lookup' , key ) end rescue Puppet :: Error => e raise PALError . from_error ( e ) end end
PALError is used to convert errors from executing puppet code into
Bolt::Errors
PALError is used to convert errors from executing puppet code into Bolt :: Errors
# Do a lookup with a script compiler, which uses the 'plan_hierarchy' key in # Hiera config. # We want all of the setup and teardown that `in_bolt_compiler` does, # but also want to pass keys to the script compiler.
key
<not_specific>
plan_vars
<not_specific>