Sha256: 058e3bc0f6ca6420873256a642b75bfd67560faec9629515b3cf1721b2e35159

Contents?: true

Size: 420 Bytes

Versions: 6

Compression:

Stored size: 420 Bytes

Contents

# Find values via data lookups for class parameters
#
# Wraps the lookup() function for data lookups of class parameters without
# inline defaults.
#
Puppet::Functions.create_function(:dump_lookups) do
  dispatch :dump_lookups do
    param 'Array[String]', :parameters
  end

  def dump_lookups(parameters)
    Hash[parameters.map { |param| [param, call_function('lookup', [param], 'default_value' => nil)] }]
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kafo-2.1.0 modules/kafo_configure/lib/puppet/functions/dump_lookups.rb
kafo-2.0.2 modules/kafo_configure/lib/puppet/functions/dump_lookups.rb
kafo-2.0.1 modules/kafo_configure/lib/puppet/functions/dump_lookups.rb
kafo-2.0.0 modules/kafo_configure/lib/puppet/functions/dump_lookups.rb
kafo-1.0.8 modules/kafo_configure/lib/puppet/functions/dump_lookups.rb
kafo-1.0.7 modules/kafo_configure/lib/puppet/functions/dump_lookups.rb