primitive
, the primitive’s resource agent may want to set node attributes such as master scores. However, with containers, it is not apparent which node should get the attribute.
container-attribute-target
resource meta-attribute allows the user to specify which approach to use. If it is set to host
, then user-defined node attributes will be checked on the underlying host. If it is anything else, the local node (in this case the bundle node) is used as usual.
#uname
.
container-attribute-target
is host
, the cluster will pass additional environment variables to the primitive’s resource agent that allow it to set node attributes appropriately: container_attribute_target
(identical to the meta-attribute value) and physical_host
(the name of the underlying host).
Note