ganglia: class defined in class moved to top

Lets avoid classes defined inside a class, makes it hard to grep for
them plus puppet-lint complains.

Change-Id: I81b73f922ac8a8f47cf9e5c124b7e4f3daa08e7b