From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?G=C3=A1bor_Boskovits?= Subject: Re: Automated system upgrade Date: Mon, 3 Feb 2020 19:16:17 +0100 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:58116) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1iygGt-0007Zp-3X for help-guix@gnu.org; Mon, 03 Feb 2020 13:16:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1iygGs-0003Ld-19 for help-guix@gnu.org; Mon, 03 Feb 2020 13:16:30 -0500 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]:46655) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1iygGr-0003Hh-Qf for help-guix@gnu.org; Mon, 03 Feb 2020 13:16:29 -0500 Received: by mail-ed1-x52d.google.com with SMTP id m8so17006721edi.13 for ; Mon, 03 Feb 2020 10:16:29 -0800 (PST) In-Reply-To: List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane-mx.org@gnu.org Sender: "Help-Guix" To: jimmy@thrasibule.mx Cc: help-guix Hello, Jimmy Thrasibule ezt =C3=ADrta (id=C5=91pont: = 2020. febr. 3., H, 13:37): > > Hi, > > I would like to know about the best way one would automate a Guix system > reconfiguration. The idea is to put the system configuration stanza into = a > Git repository and then having the systems regularly pull from this > repository and reconfigure. > > The way I see it so far would take the following steps: > > 1. Create a Guix package with all the system configuration (the package c= an > call guix system reconfigure after install). > 2. Create a Guix pull channel. > 3. Have the system automatically pulling the latest revision. (??) > 4. Repeat. > There is no need for 1 and 2. > Does this plan is looking sane to you and how can I regularly pull the > system's repository? Maybe using a service or a cron job? You should create a service which updates a repo from the cron job and then reconfigure. There is something like this on berlin, you can have a look at the config in the maintenance repository. Look for static-website-service. Hope this helps. > > Regards, > Jimmy Best regards, g_bor --=20 OpenPGP Key Fingerprint: 7988:3B9F:7D6A:4DBF:3719:0367:2506:A96C:CF63:0B21