On May 21, 2008, at 7:01 PM, Lon Hohberger wrote:


On Thu, 2008-05-22 at 00:05 +0800, Xinwei Hu wrote:

c.
I'm looking for a solution to "inherit" RAs.
Take JeOS for example. We may have different RAs for all different
kind of JeOS, but all of them are
only slightly different in a few parameters and monitoring methods. We
also can have a huge RA to handle
them all, but that'll be very scary to maintain/evo (i.e Filesystem)

Why not just define a base virtual resource-agent class in your favorite
OO language and write resource agents that inherit from the class?

The RA API is language-agnostic...

Alternatively, there's no reason you can't do a common script and source
it from multiple agents to provide common functionality.  We do it all
the time in rgmanager (heartbeat agents do it too - at least with
ocf-shellfuncs).

I'm not sure this kind of inheritance is something that should be
internal to pacemaker;

Agreed 100% - totally out of scope for Pacemaker I'm afraid.


_______________________________________________
Pacemaker mailing list
[email protected]
http://list.clusterlabs.org/mailman/listinfo/pacemaker

Reply via email to