OCF_Directories(3pm)

πŸ“¦
version 2.3.0 Β· 3 versions
, in debian trixie, ubuntu noble, ubuntu questing

πŸ’– OCF_Directories πŸ’–

okay bestie, welcome to OCF_Directories β€” it's a Perl module (a 3pm page, if you're clocking the vibe) from the User Contributed Perl Documentation corner of the world, and it's literally just here to hand you the binaries and binary options you need when you're building Resource Agents. that's it. that's the whole gig. πŸŽ€


✨ SYNOPSIS ✨

the way you summon this thing is so simple, bestie:

use FindBin;
use lib "$FindBin::RealBin/../../lib/heartbeat/";

use OCF_Directories;

yeah. that's it. import it and go. πŸ’…


🌸 DESCRIPTION 🌸

so like, this module got ported from the ocf-directories shell script over in the resource-agents project. no cap. if you wanna see where it came from, the origin story lives here:

<https://github.com/ClusterLabs/resource-agents/>

fr fr, it's a glow-up of the original shell script, now serving Perl realness. πŸ¦‹


πŸ‘‘ VARIABLES πŸ‘‘

these are the variables this module exports, and yes, we're listing every single one because they're all icons and none of them are getting left behind:

  • $INITDIR ✨
  • $HA_DIR ✨
  • $HA_RCDIR ✨
  • $HA_CONFDIR ✨
  • $HA_CF ✨
  • $HA_VARLIB ✨
  • $HA_RSCTMP ✨
  • $HA_RSCTMP_OLD ✨
  • $HA_FIFO ✨
  • $HA_BIN ✨
  • $HA_SBIN_DIR ✨
  • $HA_DATEFMT ✨
  • $HA_DEBUGLOG ✨
  • $HA_RESOURCEDIR ✨
  • $HA_DOCDIR ✨
  • $__SCRIPT_NAME ✨
  • $HA_VARRUN ✨
  • `$HA_VARLOCK`` ✨
  • $ocf_prefix ✨
  • $ocf_exec_prefix ✨

twenty of them. a whole squad. a full friend group of variables, all showing up to the function together. 🫢

ngl, $__SCRIPT_NAME has that double-underscore main character energy and we respect it.

Copyright (C) 2016: Jehan-Guillaume de Rorthais and Mael Rimbault. πŸ’–

Licensed under the PostgreSQL License. periodt.


and that's the whole page, bestie!! 🌈⭐ this was OCF_Directories(3pm), served fresh from perl v5.38.2 on 2024-03-18 β€” mwah, drink some water, and go read your Resource Agent docs responsibly. πŸ’œπŸ§šπŸŒΈ

πŸ“¦ where this page comes from