Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

'hiera' is deprecated in favor of using 'lookup' #154

Open
mphilipps opened this issue Feb 11, 2019 · 3 comments
Open

'hiera' is deprecated in favor of using 'lookup' #154

mphilipps opened this issue Feb 11, 2019 · 3 comments

Comments

@mphilipps
Copy link

hi,
We keep getting the following warning in our puppetserver log:

WARN  [qtp2145888459-158] [puppetserver] Puppet The function 'hiera' is deprecated in favor of using 'lookup'. See https://puppet.com/docs/puppet/6.2/deprecated_language.html
   (file & line not available)

Even though puppet can't tell me the file & line I think I have located the issue in lib/puppet/functions/params_lookup.rb.

@alvagante
Copy link
Member

Yes hiera is deprecated, but for backward compatibility with Puppet 3 we have to keep on using it.

@mphilipps
Copy link
Author

Last year Puppet 6 was released, do you really want to keep backward compatibility with Puppet 3?

@alvagante
Copy link
Member

Yes, considering that we are talking about a warning and there're still Puppet3 installations around.
Anyway, since the issue is with the function using the new api, I will use the lookup function here, and keep hiera in the old api function version.
Keep tuned.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants