diff options
author | Ryan Mulligan <ryan@ryantm.com> | 2022-03-15 16:06:56 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 16:06:56 -0700 |
commit | 0ab73f9a3fe0d8a305db88650baef4a6bb792f29 (patch) | |
tree | 80b17b7be127a8e5eaaf85d1fdc8dfe9b9cad329 /pkgs/os-specific/linux | |
parent | cec02f35167a49490f3ee8e32673f22f87a8132a (diff) | |
parent | 70c1e849c0b5741e07e7d8d0d418764e2fdb4e24 (diff) | |
download | nixpkgs-0ab73f9a3fe0d8a305db88650baef4a6bb792f29.tar nixpkgs-0ab73f9a3fe0d8a305db88650baef4a6bb792f29.tar.gz nixpkgs-0ab73f9a3fe0d8a305db88650baef4a6bb792f29.tar.bz2 nixpkgs-0ab73f9a3fe0d8a305db88650baef4a6bb792f29.tar.lz nixpkgs-0ab73f9a3fe0d8a305db88650baef4a6bb792f29.tar.xz nixpkgs-0ab73f9a3fe0d8a305db88650baef4a6bb792f29.tar.zst nixpkgs-0ab73f9a3fe0d8a305db88650baef4a6bb792f29.zip |
Merge pull request #162535 from astro/pacemaker
pacemaker: init
Diffstat (limited to 'pkgs/os-specific/linux')
-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 9c9557c7be8..8d7f2b52714 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 '' |