lib/bolt/application.rb
# Lookup a value with Hiera.
#
# @param key [String] The key to look up in the hierarchy.
# @param targets [Array[String]] The targets to use as context.
# @param vars [Hash] Variables to set in the scope.
# @return [Bolt::ResultSet, String] The result of the lookup.
#
Lookup a value with Hiera.
Lookup a value with Hiera .
def lookup(key, targets, vars: {})
      executor.publish_event(type: :plan_start, plan: nil)
      with_benchmark do
        pal.lookup(key,
                   inventory.get_targets(targets),
                   inventory,
                   executor,
                   plan_vars: vars)
      end
    end
def lookup ( key , targets , vars : { } ) executor . publish_event ( type : :plan_start , plan : nil ) with_benchmark do pal . lookup ( key , inventory . get_targets ( targets ) , inventory , executor , plan_vars : vars ) end end
Lookup a value with Hiera.
Lookup a value with Hiera .
The result of the lookup.
The result of the lookup .
Bolt::ResultSet, String
key
The key to look up in the hierarchy.
The key to look up in the hierarchy .
targets
] The targets to use as context.
] The targets to use as context .
vars
Variables to set in the scope.
Variables to set in the scope .