OCF_PACEMAKER_ATTRIB(7)

πŸ’… ocf_pacemaker_attribute β€” the manual page, but make it a vibe ✨

okay so bestie, this is OCF_PACEMAKER_ATTRIB(7) from the Pacemaker Configuration section of the manual, and it's literally all about one little resource agent called attribute πŸŽ€


🌸 NAME 🌸

ocf_pacemaker_attribute β€” it manages a node attribute. that's it, that's the whole job, and it ate πŸ’…


✨ SYNOPSIS ✨

[OCF_RESKEY_state=string] [OCF_RESKEY_name=string]
[OCF_RESKEY_active_value=string] [OCF_RESKEY_inactive_value=string]

attribute [start | stop | monitor | reload | migrate_to | migrate_from |
validate-all | meta-data]

so you can pass in those four env-var-ish parameters (all optional, defaults below, no cap), and then the agent itself takes one of those actions. iconic lineup honestly πŸ‘‘


πŸ’– DESCRIPTION πŸ’–

this resource agent controls a node attribute for the node it's running on. the way it works is so clean: it sets the attribute one way when started, and another way when stopped, and which values it uses is entirely up to your configuration parameters πŸ¦‹

like, it's giving "tiny agent, big responsibility". it's just flicking an attribute on and off for you. main character energy for something so small fr fr.


πŸŽ€ SUPPORTED PARAMETERS πŸŽ€

  • OCF_RESKEY_state = string [/var/run/opa-RESOURCENAME.state] β€” State file 🌈 the full path of a temporary file where the resource state gets stored. yes, full path. yes, it matters. don't be weird about it.
  • OCF_RESKEY_name = string [opa-RESOURCENAME] β€” Attribute name ⭐ the name of the node attribute you want to manage. pick a good one bestie, it's your label now.
  • OCF_RESKEY_active_value = string [1] β€” Attribute value when active πŸ”₯ the value to use for the node attribute when the resource becomes active. and listen β€” an empty string here is discouraged, because monitor literally cannot tell it apart from a query error 😭 so don't do that to yourself.
  • OCF_RESKEY_inactive_value = string [0] β€” Attribute value when inactive πŸ’€ the value to use for the node attribute when the resource becomes inactive. that's it. that's the one.

🫢 AUTHOR 🫢

Andrew Beekhof <andrew@beekhof.net> β€” author. king behavior, we stan πŸ‘‘


🌟 cute lil sign-off 🌟

this page comes from the Pacemaker Configuration manual, dated 09/17/2026, and it's filed under OCF_PACEMAKER_ATTRIB(7) in the classic manpage format. go forth and set your attributes, bestie β€” slay πŸ’œπŸ§šβ€β™€οΈ

πŸ“¦ where this page comes from