Previously libraries/pacemaker/mixins/resource_meta.rb had:
module Pacemaker
class Resource
module Meta
...
but libraries/pacemaker/resource.rb had:
module Pacemaker
class Resource < Pacemaker::CIBObject
...
This would work fine if libraries/pacemaker/resource.rb was loaded
before libraries/pacemaker/mixins/resource_meta.rb, because then
Pacemaker::Resource would have Pacemaker::CIBObject as its parent class,
and the mixin would simply add the Meta module within the existing
Pacemaker::Resource class. However, due to Chef's somewhat erratic
method of loading libraries, sometimes it could happen the other way
around, in which case Pacemaker::Resource would be initially defined by
the mixin with no parent class, and then when resource.rb was loaded, it
would attempt to redefine Resource to have a parent class, triggering
the error.