[ClusterLabs] Q: using rsc_defaults (crm shell syntax)

Ken Gaillot kgaillot at redhat.com
Wed Mar 30 10:49:54 EDT 2022


On Wed, 2022-03-30 at 10:56 +0200, Ulrich Windl wrote:
> Hi!
> 
> I have a question on rsc_defaults:
> As I understand it, the rsc_defaults are _added_ to the metadata
> definitions of _all_ the resources.
> So I wonder, could I have multiple rcs_defaults (or a comparable
> mechnism) to apply to different sets of resources?
> (The "one size fits all" does not always work)
> 
> Regards,
> Ulrich
> 

Yes, as of 2.0.5 you can use rules to limit a rsc_defaults or
op_defaults block to particular agent classes/providers/types:

https://clusterlabs.org/pacemaker/doc/2.1/Pacemaker_Explained/singlehtml/index.html#resource-expressions

-- 
Ken Gaillot <kgaillot at redhat.com>



More information about the Users mailing list