dalen / puppet-puppetdbquery

Query functions for PuppetDB

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

support for 3.8.1

evilbofh opened this issue · comments

Since upgrading to pe-puppet 3.8.1 I get the following errors with manifests that include query calls

2015-12-11 11:21:12,918 ERROR [puppet-server] Puppet undefined method server_urls' for #<Puppet::Util::Puppetdb::Config:0x3e3886a> at /etc/puppetlabs/puppe t/environments/prd/current/puppet/application/nagioscore/manifests/params.pp:7 on node apddcungp002.apac.aon.bz 2015-12-11 11:21:12,929 ERROR [puppet-server] Puppet undefined methodserver_urls' for #Puppet::Util::Puppetdb::Config:0x3e3886a at /etc/puppetlabs/puppe
t/environments/prd/current/puppet/application/nagioscore/manifests/params.pp:7 on node apddcungp002.apac.aon.bz
/var/opt/lib/pe-puppet-server/jruby-gems/gems/ruby-puppetdb-2.1.0/lib/puppet/parser/functions/query_nodes.rb:28:in real_function_query_nodes' /opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/parser/functions.rb:164:infunction_query_nodes'
/opt/puppet/lib/ruby/site_ruby/1.9.1/puppet/util/profiler/around_profiler.rb:58:in `profile'

Hi, you likely have PuppetDB 2.x installed. So then you need puppetdbquery 1.x instead of 2.x. So if you downgrade it should work.