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

allow module to work with puppet 6.16 and higher #127

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

applewiskey
Copy link

remove url encoding on new puppet agent versions as it's done internally

remove url encoding on new puppet agent versions as it's done internally
it resolved that face and function have different internal processing
face does noe require URL encoding and funtions do
@raphink
Copy link

raphink commented Jul 3, 2020

FTR, puppetdb_query() is now a standard function that comes with the PuppetDB termini package: https://puppet.com/docs/puppetdb/5.2/api/query/tutorial.html

@applewiskey
Copy link
Author

Hi, @raphink .
Well, it is, but if you have tens of thousands line of code with 10-100 usages for query_nodes written by other teams you have to choose between fixing code for everyone, ask them to fix and wait a year or fixing the source. So I decided to do the last. Even if @dalen will never merge it, someone with the same issues can find it and use.

@raphink
Copy link

raphink commented Jul 7, 2020

@applewiskey another option for you would be to use puppet-lint to automate the migration. Writing a puppet-lint plugin allows you to detect usage of the query_nodes or query_facts and you can even write a fix method to automatically convert to puppetdb_query(). See for example https://github.com/voxpupuli/puppet-lint-absolute_classname-check/blob/master/lib/puppet-lint/plugins/check_absolute_classname.rb#L47

sharewax and others added 5 commits June 20, 2024 13:57
    Fix deprecation warning:
    Puppet The method 'Puppet::Network::HttpPool.http_instance' is deprecated. Use Puppet.runtime[:http] instead
Fix warning about using 'Puppet::Network::HttpPool.http_instance'
correct using Puppet::runtime[:http] with URI
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.

4 participants