Puppet Function: convert_hiera_yaml_to_v5

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

Overview

convert_hiera_yaml_to_v5(String $version_3_yaml)Any

Parameters:

  • version_3_yaml (String)

Returns:

  • (Any)


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

Puppet::Functions.create_function(:convert_hiera_yaml_to_v5) do
  dispatch :convert do
    param 'String', :version_3_yaml
  end

  def convert(version_3_yaml)
    HieraFiver.new(version_3_yaml).to_5
  end
end