From patchwork Wed Sep 28 21:10:13 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Sharlatan Hellseher X-Patchwork-Id: 43034 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id 812BF27BBEA; Wed, 28 Sep 2022 22:40:21 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,MAILING_LIST_MULTI, SPF_HELO_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 022EF27BBE9 for ; Wed, 28 Sep 2022 22:40:21 +0100 (BST) Received: from localhost ([::1]:39604 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1odemy-00023M-5o for patchwork@mira.cbaines.net; Wed, 28 Sep 2022 17:40:20 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:38456) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1odeKc-0006RZ-2F for guix-patches@gnu.org; Wed, 28 Sep 2022 17:11:02 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:35902) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1odeKb-00058v-Oq for guix-patches@gnu.org; Wed, 28 Sep 2022 17:11:01 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1odeKb-0004ZB-Hq for guix-patches@gnu.org; Wed, 28 Sep 2022 17:11:01 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#58152] [PATCH 5/5]: gnu: Add pacemaker References: In-Reply-To: Resent-From: Sharlatan Hellseher Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Wed, 28 Sep 2022 21:11:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 58152 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 58152@debbugs.gnu.org Received: via spool by 58152-submit@debbugs.gnu.org id=B58152.166439943117518 (code B ref 58152); Wed, 28 Sep 2022 21:11:01 +0000 Received: (at 58152) by debbugs.gnu.org; 28 Sep 2022 21:10:31 +0000 Received: from localhost ([127.0.0.1]:34980 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odeK7-0004YU-Aj for submit@debbugs.gnu.org; Wed, 28 Sep 2022 17:10:31 -0400 Received: from mail-qk1-f170.google.com ([209.85.222.170]:38624) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1odeK5-0004Y9-Ng for 58152@debbugs.gnu.org; Wed, 28 Sep 2022 17:10:30 -0400 Received: by mail-qk1-f170.google.com with SMTP id 3so8684125qka.5 for <58152@debbugs.gnu.org>; Wed, 28 Sep 2022 14:10:29 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=to:subject:message-id:date:from:mime-version:from:to:cc:subject :date; bh=ZAkLA+AQwwgX7SCWId6DXoq1UL6GfEv8Zzvb9mVgEwA=; b=lIRCSJnjxzfIRdg5h7eLK4JpwwRjiw3If2MzgxRxwF6tftS+nlU/IwL/BQluQ2lC++ 3yuzXca1Ek1A7tZNfiQEYEyt/ICnxxC6tH0kL5PQv4b5tL78kywQA/I62o+uNQHMiBVr aVcgPDMR3VCMPDGJUBqq/5gdz7+xjy1LnJGWNEedGyBigU0So2szgbpqwm5ofhWl318d R1eUn6xozHVCP8LpcWKcPMsKJoXP3160vOFq2PcMxC8Mx9vnXdgY5hHtcbJSAuK8MWTh KjUt0VqsFgnRNjMlJJAug5aSbTDDpge7MwikMUwINoMhMiooLPFFAdPAFrVFrpoagEDj Sv5g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=to:subject:message-id:date:from:mime-version:x-gm-message-state :from:to:cc:subject:date; bh=ZAkLA+AQwwgX7SCWId6DXoq1UL6GfEv8Zzvb9mVgEwA=; b=XLqBQUznXdSsvPTOG+itI8R5WFCve8QsN9wDvSWAUe377NzQ1Ssg6cLYgVte1WG5yb w77AOJ5gV7A4PhwH8mmVqIccLXYgoCxRfBrmwnXRTuB8DKlqQKZTRromOfmT7oJ1ZYuw NSDNXUHQeZ5Xttn7szaCkgr0OCd0+TcYkTw3gINRv4y7WRUTwkt0hPBU0VKkmD9RaujM sBY783MQ0ErDNyXc7xlDDLxOZvY0SpiQ8yiW7Ic3eM5cw01SQPOc7JfWNAUxP5bCYwxy E9Ch+y0z9EAvBF3z40cH7TvQRJvl3qITYGgdjR87wffXvzYjoG51iwjmZbX9vsC42JwJ OPaQ== X-Gm-Message-State: ACrzQf0vMcdT5UR+TwLD7uC005Vmln+lDdAnsbPe2dcI3jbn1NX0G2Nw QqXyeBBlG5ASB6te63AF0bDZUGelV1QscwhH0VRbBq3j X-Google-Smtp-Source: AMsMyM6yMf0RXlugzJbtnvSM6JfcevoKvf2QFh7OSkmrdXzy32eZLc9vJb+uLve1pIMj6YutIhYHQyPOAho5zAkZxZY= X-Received: by 2002:a05:620a:167a:b0:6cd:eec3:1785 with SMTP id d26-20020a05620a167a00b006cdeec31785mr22589842qko.211.1664399424393; Wed, 28 Sep 2022 14:10:24 -0700 (PDT) MIME-Version: 1.0 From: Sharlatan Hellseher Date: Wed, 28 Sep 2022 22:10:13 +0100 Message-ID: X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" X-getmail-retrieved-from-mailbox: Patches -- … наш разум - превосходная объяснительная машина которая способна найти смысл почти в чем угодно, истолковать любой феномен, но совершенно не в состоянии принять мысль о непредсказуемости. From dfb3eaa8b6aa5a428e493008e8c293f47ef10b1f Mon Sep 17 00:00:00 2001 From: Sharlatan Hellseher Date: Wed, 28 Sep 2022 21:49:20 +0100 Subject: [PATCH 5/5] gnu: Add pacemaker * gnu/pacemaker/high-availability.scm (pacemaker): New variable. --- gnu/packages/high-availability.scm | 54 ++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/gnu/packages/high-availability.scm b/gnu/packages/high-availability.scm index 488ac5a3b0..f699dbad20 100644 --- a/gnu/packages/high-availability.scm +++ b/gnu/packages/high-availability.scm @@ -186,3 +186,57 @@ (define-public corosync @end itemize") (license (list license:bsd-0 license:gpl3)))) + +(define-public pacemaker + (package + (name "pacemaker") + (version "2.1.4") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/ClusterLabs/pacemaker") + (commit (string-append "Pacemaker-" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "04gfd7i3w0zbzv7vi7728lgbyjq7cbqpr7jsp501piwg3z5j4mvb")))) + (build-system gnu-build-system) + (arguments + (list #:configure-flags #~(list "--with-corosync" + (string-append "--with-initdir=" + #$output "/etc/init.d") + (string-append "--with-ocfdir=" + #$output "/lib")))) + (native-inputs (list autoconf + automake + cmocka + gettext-minimal + libtool + pkg-config + rsync + util-linux + valgrind)) + (inputs (list dbus + corosync + glib + gnutls + libqb + libxml2 + libxslt + python + `(,util-linux "lib"))) + (home-page "https://www.clusterlabs.org/pacemaker/") + (synopsis "Scalable High-Availability cluster resource manager") + (description + "Pacemaker is a high-availability cluster resource manager. + +It achieves maximum availability for your cluster services (a.k.a. resources) by +detecting and recovering from node- and resource-level failures by making use of +the messaging and membership capabilities provided by Corosync. + +It can do this for clusters of practically any size and comes with a powerful +dependency model that allows the administrator to accurately express the +relationships (both ordering and location) between the cluster resources. + +Virtually anything that can be scripted can be managed as part of a Pacemaker cluster.") + (license (list license:cc-by4.0 license:gpl2+ license:lgpl2.1+)))) -- 2.37.3