role="master"
will cover the master role.
Example 10.10. Monitoring both states of a promotable clone resource
<clone id="myMasterRsc"> <meta_attributes id="myMasterRsc-meta"> <nvpair name="promotable" value="true"/> </meta_attributes> <primitive id="myRsc" class="ocf" type="myApp" provider="myCorp"> <operations> <op id="public-ip-slave-check" name="monitor" interval="60"/> <op id="public-ip-master-check" name="monitor" interval="61" role="Master"/> </operations> </primitive> </clone>
Important