jhoblitt/puppet-ganglia

duplicate declaration issue

gitkent opened this issue · 2 comments

I've had duplicate declaration issue error:

Could not retrieve catalog from remote server: Error 400 on SERVER: Duplicate declaration: Class[Ganglia::Gmond] is already declared; cannot redeclare on node example.com

I then have to use "include" instead of "inherits" and comment out the class dependency to get rid of the error, for e.g.
class ganglia::gmond ( ... , ...) {
...
include ganglia::params
...

class{ 'ganglia::gmond::install': } ->

class{ 'ganglia::gmond::config': } ->

class{ 'ganglia::gmond::service': } ->

Class['ganglia::gmond']

}

That issue should have already been fixed by fc74fe2 , which was committed after the last forge release. I pushed out a 1.0.2 release to the forge a few minutes ago. Please give it a try and let me know.

I'm going to assume that this issue is well resolved. Thanks for reporting!