Jira (PDB-996) Duplicate declaration during compilation with default parameters and future parser

2014-10-24 Thread Brian Kane (JIRA)
Title: Message Title










 

 Brian Kane created an issue


















 PuppetDB /  PDB-996



  Duplicate declaration during compilation with default parameters and future parser 










Issue Type:

  Bug




Affects Versions:


 module-4.0.0




Assignee:


 Unassigned




Components:


 Module




Created:


 24/Oct/14 6:59 AM




Environment:


Puppet master: 3.7.2 Puppet agent: 3.7.1 Master/agent OS: RHEL6.4 parser = future




Priority:

  Normal




Reporter:

 Brian Kane










When using the puppetdb module with default parameters and the future parser, the following error is thrown during compilation:






Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Exec[validate postgres connection for localhost/puppetdb] 

Jira (PDB-996) Duplicate declaration during compilation with default parameters and future parser

2014-10-24 Thread Brian Kane (JIRA)
Title: Message Title










 

 Brian Kane commented on an issue


















  Re: Duplicate declaration during compilation with default parameters and future parser 
















site.pp






node 'XXX' {




  class { 'puppetdb': }




  class { 'puppetdb::master::config':




puppet_service_name = 'httpd',




  }




}



















   

 Add Comment

















Jira (PDB-996) Duplicate declaration during compilation with default parameters and future parser

2014-10-24 Thread Brian Kane (JIRA)
Title: Message Title










 

 Brian Kane commented on an issue


















  Re: Duplicate declaration during compilation with default parameters and future parser 










Yes, that's a bug in the 4.0.0 version of the postgresql module with the future parser. The fix is pushed to the master branch already. https://github.com/puppetlabs/puppetlabs-postgresql/commit/289de739c3c92e58652529456a4c8cff5fb2eecd
I applied the change manually to get around this.












   

 Add Comment

























 PuppetDB /  PDB-996



  Duplicate declaration during compilation with default parameters and future parser 







 When using the puppetdb module with default parameters and the future parser, the following error is thrown during compilation:  {noformat}  Error: Could not retrieve catalog from remote server: Error 400 on SERVER: Evaluation Error: Error while evaluating a Resource Statement, Duplicate declaration: Exec[validate postgres connection for localhost/puppetd...















 This message was sent by Atlassian JIRA (v6.1.4#6159-sha1:44eaede)




 














-- 
You received this message because you are subscribed to the Google Groups Puppet Bugs group.
To unsubscribe from this group and stop receiving emails from it, send 

Jira (PDB-996) Duplicate declaration during compilation with default parameters and future parser

2014-10-24 Thread Brian Kane (JIRA)
Title: Message Title










 

 Brian Kane commented on an issue


















  Re: Duplicate declaration during compilation with default parameters and future parser 










I was just able to reproduce with the vagrant puppetlabs/centos-6.5-64-nocm box. I deployed it, installed puppet/puppet-server 3.7.2. Installed the puppetlabs/puppetdb modules, applied the fix to the postgresql module, and reproduced it. I notice your test box appears to be Debian based (dpkg), whereas I'm using RHEL/CentOS.






[root@localhost manifests]# cat site.pp









node 'localhost.corp.microstrategy.com' {




  class { 'puppetdb': }




  class { 'puppetdb::master::config': }




}









[root@localhost manifests]# cat /etc/puppet/puppet.conf




[main]




# The Puppet log directory.


 

Jira (PDB-996) Duplicate declaration during compilation with default parameters and future parser

2014-10-24 Thread Brian Kane (JIRA)
Title: Message Title










 

 Brian Kane commented on an issue


















  Re: Duplicate declaration during compilation with default parameters and future parser 
















bkane_local$ vagrant init puppetlabs/centos-6.5-64-nocm




bkane_local$ vagrant box add puppetlabs/centos-6.5-64-nocm https://vagrantcloud.com/puppetlabs/boxes/centos-6.5-64-nocm/versions/3/providers/virtualbox.box




bkane_local$ vagrant up









bkane_local$ cat Vagrantfile




# -*- mode: ruby -*-




# vi: set ft=ruby :









# Vagrantfile API/syntax version. Don't touch unless you know what you're doing!




VAGRANTFILE_API_VERSION = 2