This section discusses what to do with your resource agent once it is done and tested — where to install it, and how to include it in either your own application package or in the Linux-HA resource agents repository.
If you choose to include your resource agent in your own project, make
sure it installs into the correct location. Resource agents should
install into the /usr/lib/ocf/resource.d/<provider> directory, where
<provider> is the name of your project or any other name you wish to
identify the resource agent with.
For example, if your foobar resource agent is being packaged as part
of a project named fortytwo, then the correct full path to your
resource agent would be
/usr/lib/ocf/resource.d/fortytwo/foobar. Make sure your resource
agent installs with 0755 (-rwxr-xr-x) permission bits.
When installed this way, OCF-compliant cluster resource managers will
be able to properly identify, parse, and execute your resource
agent. The Pacemaker cluster manager, for example, would map the
above-mentioned installation path to the ocf:fortytwo:foobar
resource type identifier.