> Trying to use the puppetlabs-puppetdb module to set up my puppet master to > use stored configs using puppetdb along side foreman. > > In a config group I dropped it class puppetb and puppetdb::master::config. > > Here's the error I'm seeing: > > Error: Could not retrieve catalog from remote server: Error 400 on SERVER: > Duplicate declaration: Class[Puppetdb::Database::Postgresql] is already > declared; cannot redeclare at > /etc/puppet/environments/production/modules/puppetdb/manifests/init.pp:108 > on node mcadprod1.mca.sharkrivertech.com > Warning: Not using cache on failed catalog > Error: Could not retrieve catalog; skipping run > > is there a work around for ths?
The error is pretty clear, we have a duplicate class defined somewhere. Now introducing the class 'puppetdb' and 'puppetdb::master::config' together should not cause a conflict, so I can only presume you have 'puppetdb::database::postgresql' defined somewhere else. Can you double check and make sure this isn't happening? Test the two classes for the node on their own for example (without your other ENC classes for example, not sure how quite to do this in foreman) and you should see them working fine. ken. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAE4bNTn%3Dz4yEXorCAmXA7WQnjquLdzcnPa-%2B6A1m18qShf8tLw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
