8.2. Parameter defaults

Defaults for resource agent parameters should be set by initializing variables with the suffix _default:

# Defaults
OCF_RESKEY_superfrobnicate_default=0

: ${OCF_RESKEY_superfrobnicate=${OCF_RESKEY_superfrobnicate_default}}
[Note]Note

The resource agent should make sure that it sets a default for any parameter not marked as required in the metadata.