rsc_expression
is a rule condition based on a resource agent’s properties. This rule is only valid within an rsc_defaults
or op_defaults
context. None of the matching attributes of class
, provider
, and type
are required. If one is omitted, all values of that attribute will match. For instance, omitting type
means every type will match.
Table 8.7. Attributes of an rsc_expression Element
Example 8.8. True for all ocf:heartbeat:IPaddr2 resources
<rule id="rule1" score="INFINITY"> <rsc_expression id="rule_expr1" class="ocf" provider="heartbeat" type="IPaddr2"/> </rule>
Example 8.9. Provider doesn’t apply to non-OCF resources
<rule id="rule2" score="INFINITY"> <rsc_expression id="rule_expr2" class="stonith" type="fence_xvm"/> </rule>