jhoblitt / puppet-ganglia

Manages ganglia gmond & gmetad daemons + web front end
Other
12 stars 34 forks source link

duplicate declaration issue #8

Closed gitkent closed 10 years ago

gitkent commented 10 years ago

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']

}

jhoblitt commented 10 years ago

That issue should have already been fixed by https://github.com/jhoblitt/puppet-ganglia/commit/fc74fe2788a7b9d8f7fd96f7a8cdc744583f844d , 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.

jhoblitt commented 10 years ago

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