diff options
author | Ryan Mulligan <ryan@ryantm.com> | 2021-02-24 09:36:49 -0800 |
---|---|---|
committer | Astro <astro@spaceboyz.net> | 2022-03-08 20:26:52 +0100 |
commit | 2b78cfdb097dfb68bcfcae532de303475ae1a030 (patch) | |
tree | 94e7f771d9cfd03060d2712415859751b49e8df8 /pkgs/os-specific/linux/ocf-resource-agents | |
parent | 1e6453bb4475a3699ff18ce55c5d9822d93c8b96 (diff) |
pacemaker: init at 2.1.2
Diffstat (limited to 'pkgs/os-specific/linux/ocf-resource-agents')
-rw-r--r-- | pkgs/os-specific/linux/ocf-resource-agents/default.nix | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/pkgs/os-specific/linux/ocf-resource-agents/default.nix b/pkgs/os-specific/linux/ocf-resource-agents/default.nix index 9c9557c7be851..8d7f2b527144a 100644 --- a/pkgs/os-specific/linux/ocf-resource-agents/default.nix +++ b/pkgs/os-specific/linux/ocf-resource-agents/default.nix @@ -1,3 +1,5 @@ +# This combines together OCF definitions from other derivations. +# https://github.com/ClusterLabs/resource-agents/blob/master/doc/dev-guides/ra-dev-guide.asc { stdenv , lib , runCommand @@ -8,12 +10,16 @@ , python3 , glib , drbd +, pacemaker }: let drbdForOCF = drbd.override { forOCF = true; }; + pacemakerForOCF = pacemaker.override { + forOCF = true; + }; resource-agentsForOCF = stdenv.mkDerivation rec { pname = "resource-agents"; @@ -53,4 +59,5 @@ runCommand "ocf-resource-agents" {} '' mkdir -p $out/usr/lib/ocf ${lndir}/bin/lndir -silent "${resource-agentsForOCF}/lib/ocf/" $out/usr/lib/ocf ${lndir}/bin/lndir -silent "${drbdForOCF}/usr/lib/ocf/" $out/usr/lib/ocf + ${lndir}/bin/lndir -silent "${pacemakerForOCF}/usr/lib/ocf/" $out/usr/lib/ocf '' |