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

Use 'lookup' function instead of 'hiera' #45

Closed
wants to merge 1 commit into from

Conversation

IATkachenko
Copy link

Pull Request (PR) description

'hiera' function is deprecated in puppet.
https://puppet.com/docs/puppet/5.0/hiera_migrate_functions.html

'lookup' function is supported by all puppet versions from
requirements.version_requirement

This Pull Request (PR) fixes the following issues

Warning: The function 'hiera' is deprecated in favor of using 'lookup'. See https://puppet.com/docs/puppet/<VERSION>/deprecated_language.html\n (file & line not available)

'hiera' function is deprecated in puppet5
https://puppet.com/docs/puppet/5.0/hiera_migrate_functions.html

'lookup' function is supported for all puppet version from
requirements.version_requirement
Copy link
Member

@alexjfisher alexjfisher left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like setting the parameters using these lookups has been deprecated for over 3 years. Could you just rip them all out instead?

@traylenator
Copy link
Contributor

The explicit hiera calls should go for sure.

@IATkachenko
Copy link
Author

@alexjfisher, @traylenator, what is final decision? Should I change something or not in PR (@alexjfisher comment still require changes)?

@traylenator
Copy link
Contributor

Yes I think just delete the hiera calls and set values to their default values.

@traylenator
Copy link
Contributor

I'm going to update the module to puppet 4 and in the process these hiera calls will go.

@IATkachenko
Copy link
Author

I'm going to update the module to puppet 4 and in the process these hiera calls will go.

OK, then I just close this PR.
Thank you for your attention.

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

Successfully merging this pull request may close these issues.

3 participants