Table 8.2. Attributes of an expression Element
Field | Default | Description |
---|---|---|
id
|
| |
attribute
|
| |
type
|
The default type for
lt , gt , lte , and gte operations is number if either value contains a decimal point character, or integer otherwise. The default type for all other operations is string . If a numeric parse fails for either value, then the values compared as type string .
| |
operation
|
|
The comparison to perform (required). Allowed values:
|
value
|
| |
value-source
|
literal
|
How the
value is derived. Allowed values:
|
Table 8.3. Built-in Node Attributes
Name | Value |
---|---|
#uname
|
Node name
|
#id
|
Node ID
|
#kind
|
Node type. Possible values are
cluster , remote , and container . Kind is remote for Pacemaker Remote nodes created with the ocf:pacemaker:remote resource, and container for Pacemaker Remote guest nodes and bundle nodes
|
#is_dc
|
"true" if this node is a Designated Controller (DC), "false" otherwise
|
#cluster-name
|
The value of the
cluster-name cluster property, if set
|
#site-name
|
The value of the
site-name node attribute, if set, otherwise identical to #cluster-name
|
#role
|
The role the relevant promotable clone resource has on this node. Valid only within a rule for a location constraint for a promotable clone resource.
|