Sha256: 9428c857a46724bf58bb856d83f87e1cb7f1637acf53cec36e2b23cd608d923a

Contents?: true

Size: 474 Bytes

Versions: 15

Compression:

Stored size: 474 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(:'kafo_configure::dump_lookups') do
  dispatch :dump_lookups do
    param 'Array[String]', :parameters
    return_type 'Hash[String, Any]'
  end

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

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
kafo-6.4.0 modules/kafo_configure/lib/puppet/functions/kafo_configure/dump_lookups.rb
kafo-6.3.0 modules/kafo_configure/lib/puppet/functions/kafo_configure/dump_lookups.rb
kafo-6.2.1 modules/kafo_configure/lib/puppet/functions/kafo_configure/dump_lookups.rb
kafo-6.2.0 modules/kafo_configure/lib/puppet/functions/kafo_configure/dump_lookups.rb
kafo-6.1.2 modules/kafo_configure/lib/puppet/functions/kafo_configure/dump_lookups.rb
kafo-6.1.1 modules/kafo_configure/lib/puppet/functions/kafo_configure/dump_lookups.rb
kafo-6.1.0 modules/kafo_configure/lib/puppet/functions/kafo_configure/dump_lookups.rb
kafo-6.0.0 modules/kafo_configure/lib/puppet/functions/kafo_configure/dump_lookups.rb
kafo-5.1.0 modules/kafo_configure/lib/puppet/functions/kafo_configure/dump_lookups.rb
kafo-5.0.1 modules/kafo_configure/lib/puppet/functions/kafo_configure/dump_lookups.rb
kafo-5.0.0 modules/kafo_configure/lib/puppet/functions/kafo_configure/dump_lookups.rb
kafo-4.1.0 modules/kafo_configure/lib/puppet/functions/kafo_configure/dump_lookups.rb
kafo-4.0.1 modules/kafo_configure/lib/puppet/functions/kafo_configure/dump_lookups.rb
kafo-4.0.0 modules/kafo_configure/lib/puppet/functions/kafo_configure/dump_lookups.rb
kafo-3.0.0 modules/kafo_configure/lib/puppet/functions/kafo_configure/dump_lookups.rb