vendored/puppet/lib/puppet/parser/functions/hiera.rb in bolt-0.20.3 vs vendored/puppet/lib/puppet/parser/functions/hiera.rb in bolt-0.20.5

- old
+ new

@@ -14,11 +14,11 @@ 1. A string key that Hiera searches for in the hierarchy. **Required**. 2. An optional default value to return if Hiera doesn't find anything matching the key. * If this argument isn't provided and this function results in a lookup failure, Puppet fails with a compilation error. 3. The optional name of an arbitrary -[hierarchy level](https://docs.puppetlabs.com/hiera/latest/hierarchy.html) to insert at the +[hierarchy level](https://puppet.com/docs/hiera/latest/hierarchy.html) to insert at the top of the hierarchy. This lets you temporarily modify the hierarchy for a single lookup. * If Hiera doesn't find a matching key in the overriding hierarchy level, it continues searching the rest of the hierarchy. The `hiera` function does **not** find all matches throughout a hierarchy, instead @@ -56,11 +56,11 @@ # $users contains {admins => ["Edith Franklin", "Ginny Hamilton"], # regular => ["Iris Jackson", "Kelly Lambert"]} ~~~ You can optionally generate the default value with a -[lambda](https://docs.puppetlabs.com/puppet/latest/reference/lang_lambdas.html) that +[lambda](https://puppet.com/docs/puppet/latest/lang_lambdas.html) that takes one parameter. **Example**: Using `hiera` with a lambda ~~~ puppet @@ -76,11 +76,11 @@ The returned value's data type depends on the types of the results. In the example above, Hiera matches the 'users' key and returns it as a hash. The `hiera` function is deprecated in favor of using `lookup` and will be removed in 6.0.0. -See https://docs.puppet.com/puppet/#{Puppet.minor_version}/reference/deprecated_language.html. +See https://puppet.com/docs/puppet/#{Puppet.minor_version}/deprecated_language.html. Replace the calls as follows: | from | to | | ---- | ---| | hiera($key) | lookup($key) | @@ -90,10 +90,10 @@ Note that calls using the 'override level' option are not directly supported by 'lookup' and the produced result must be post processed to get exactly the same result, for example using simple hash/array `+` or with calls to stdlib's `deep_merge` function depending on kind of hiera call and setting of merge in hiera.yaml. See -[the documentation](https://docs.puppetlabs.com/hiera/latest/puppet.html#hiera-lookup-functions) +[the documentation](https://puppet.com/docs/hiera/latest/puppet.html#hiera-lookup-functions) for more information about Hiera lookup functions. - Since 4.0.0 DOC ) do |*args|