OCF_Functions(3pm)
π OCF_Functions β the manual page, but make it bestie π
okay so this is OCF_Functions(3pm), a User Contributed Perl Documentation page, and it's genuinely the sweetest little helper module for OCF agents. grab a snack, we're doing this together π
β¨ NAME β¨
OCF_Functions</purpose> β helper subroutines for OCF agent. that's it, that's the whole vibe: lil helper besties that do the boring stuff so your agent doesn't have to π«Ά
πΈ SYNOPSIS πΈ
the way you summon them is literally just:
use FindBin;
use lib "$FindBin::RealBin/../../lib/heartbeat/";
use OCF_Functions;
no cap, that's the whole ritual β¨
π¦ DESCRIPTION π¦
so this module got ported from the ocf-shellfuncs shell script of the resource-agents project. she's a glow-up of the original shell version, periodt.
if you wanna go look at where she came from, it's right here: <https://github.com/ClusterLabs/resource-agents/> π
π VARIABLE π
there is exactly one variable exported by this module, and her name is __OCF_ACTION. that's the whole roster. main character energy, honestly π
π SUBROUTINES π
the ones ported from ocf-shellfuncs (and exported by this module, iykyk):
ha_debugha_loghadateocf_is_cloneocf_is_msocf_is_probeocf_is_rootocf_is_trueocf_is_verocf_local_nodenameocf_logocf_exit_reasonocf_maybe_randomocf_ver2numocf_ver_complete_levelocf_ver_levelocf_version_cmpset_logtag
and the one that's β¨ exclusive β¨ β only in the perl module, not in ocf-shellfuncs at all:
ocf_notify_env
not me giving her her own little spotlight section, she earned it π
π COPYRIGHT AND LICENSE π
Copyright (C) 2016: Jehan-Guillaume de Rorthais and Mael Rimbault.
Licensed under the PostgreSQL License. π
fr fr, if you're gonna copy or ship this, read that license first β it's short, you got this π«Ά
and that's the whole page, bestie β you understood it, I'm so proud of you π
this was OCF_Functions(3pm) from the perl v5.38.2 era, dated 2024-03-18, brought to you by User Contributed Perl Documentation. slay, go write an agent, you're literally built for this πβ¨π
π¦ where this page comes from
- debian trixie: resource-agents-paf 2.3.0-2 Β· PostgreSQL
- ubuntu noble: resource-agents-paf 2.3.0-2 Β· PostgreSQL
- ubuntu questing: resource-agents-paf 2.3.0-2
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms