primitive
, the primitive’s resource agent may want to set node attributes such as promotion 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: CRM_meta_container_attribute_target
(identical to the meta-attribute value) and CRM_meta_physical_host
(the name of the underlying host).
Note
attrd_updater
and crm_attribute
commands will automatically check those environment variables and set attributes appropriately.