Puppet Function: convert_hiera_yaml_to_v5

Defined in:
lib/puppet/parser/functions/convert_hiera_yaml_to_v5.rb
Function type:
Ruby 3.x API

Overview

convert_hiera_yaml_to_v5()Any

Convert parameter from Hiera v3 YAML to Hiera v5.

Returns:

  • (Any)


9
10
11
12
13
14
15
# File 'lib/puppet/parser/functions/convert_hiera_yaml_to_v5.rb', line 9

newfunction(:convert_hiera_yaml_to_v5, :type => :rvalue, :arity => 1,
            :doc => <<-EOS
Convert parameter from Hiera v3 YAML to Hiera v5.
EOS
           ) do |args|
  HieraFiver.new(args[0]).to_5
end