From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms11 with LMTPS id iBhJDNAi2F/cIwAA0tVLHw (envelope-from ) for ; Tue, 15 Dec 2020 02:43:28 +0000 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id SAMMCNAi2F8UEAAA1q6Kng (envelope-from ) for ; Tue, 15 Dec 2020 02:43:28 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id AC6F5940429 for ; Tue, 15 Dec 2020 02:43:27 +0000 (UTC) Received: from localhost ([::1]:44178 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kp0JC-0002ch-CM for larch@yhetil.org; Mon, 14 Dec 2020 21:43:26 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:43098) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kp0J2-0002ca-PX for guix-devel@gnu.org; Mon, 14 Dec 2020 21:43:17 -0500 Received: from 02d.relay.hey.com ([204.62.114.231]:33803) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kp0J0-0002gE-Np; Mon, 14 Dec 2020 21:43:16 -0500 Received: from hey.com (bigip-vip-new.rw-ash-int.37signals.com [10.20.0.24]) by 02.relay.hey.com (Postfix) with ESMTP id F3ABF160F66; Tue, 15 Dec 2020 02:43:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=hey.com; s=heymail; t=1608000193; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to; bh=yOlEC1mv8AlV7VPRtVk5DScNryJwbTz0r11lPYTGZpc=; b=Qr5YeWPklKYWYXltW8bMe/k5/RZ3xclrafgDbEtkmx9peaGF8BAW5LRFg2sV4+CwVve5D/ LKg3nSosZg6/8hIfu2Aylq5NDfeiaJRZoyYfK2Zlt0yqKH+Ya99172OSe4v5qxAa1F0+8+ q+VfU8KIK8vLTsF5wqJwjiQyExuYYs5xA4OMLRztYJQuyZrkdq+1QFIzxHP97rJmqcruHB kXfAdy5vSCrtQ6ks4O7eWgjrXrY6RPFD6cGAOQJgMIxfBGBuV2akC1xjnw8yrSjfOYNGBm Hq140xNZWAT1+T26QNjwPY8pnqRcek+jssWqr886YHh2MnKK2+UqOhS0Af0J3w== Date: Tue, 15 Dec 2020 02:43:12 +0000 From: Ryan Prior To: Ricardo Wurmus , =?UTF-8?B?THVkb3ZpYyBDb3VydMOocw==?= Message-ID: <34e794ff8aac520ec79fa3ae359a9ed25f769e5c@hey.com> In-Reply-To: <87zh2gvhu5.fsf@gnu.org> Subject: Re: guix pack file enumerator? Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="--==_mimepart_5fd822c0beadb_5e542df0227cc"; charset=UTF-8 Content-Transfer-Encoding: 7bit Received-SPF: pass client-ip=204.62.114.231; envelope-from=ryanprior@hey.com; helo=02d.relay.hey.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, HTML_MESSAGE=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Development of GNU Guix and the GNU System distribution Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: "Guix-devel" X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -1.51 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=hey.com header.s=heymail header.b=Qr5YeWPk; dmarc=pass (policy=quarantine) header.from=hey.com; spf=pass (aspmx1.migadu.com: domain of guix-devel-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=guix-devel-bounces@gnu.org X-Migadu-Queue-Id: AC6F5940429 X-Spam-Score: -1.51 X-Migadu-Scanner: scn0.migadu.com X-TUID: H5WdX6FCi9Rm ----==_mimepart_5fd822c0beadb_5e542df0227cc Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On December 14, 2020, "Ludovic Court=C3=A8s" wrote:=0D > Here=E2=80=99s another idea: allowing =E2=80=98guix copy=E2=80=99 to ta= lk to a =E2=80=9Craw=E2=80=9D remote=0D > store=E2=80=94i.e., just /gnu/store + /var/guix/db accessed over SSH.=0D= =0D =0D > Hmm that amounts to implementing a subset of the daemon.=0D =0D This reminds me of the much-loved "agentless" model of software=0D deployment as practiced by Ansible. [1] To provision, configure, and=0D deploy using Ansible all you need on the target machine is Python and=0D sshd. It copies its tools over, does its work, then cleans up after=0D itself.=0D =0D If Guix could deploy to any machine with Guile + sshd that would be a=0D pretty compelling story. If you could also substitute perl or python or=0D= something more ubiquitous, that would be even stronger, at the cost of=0D= decreased code re-use. Best of all would be a mini-daemon we could=0D cross-compile for the target architecture, scp over as a single file,=0D execute there to carry out the rest of the task, then delete if no=0D longer needed. This approach is used to great effect by the Mgmt=0D automation tool [2].=0D =0D =0D [1] White paper (pdf, 5 pages)=0D https://www.ansible.com/hubfs/pdfs/Benefits-of-Agentless-WhitePaper.pdf=0D= [2] https://github.com/purpleidea/mgmt/=0D ----==_mimepart_5fd822c0beadb_5e542df0227cc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable =0D =0D =0D =0D =0D =0D =0D =0D =0D =0D
=0D
=0D
On December 14, 2020, "Ludovic Court=C3=A8s" <ludo@gn= u.org> wrote:
Here=E2=80=99s another idea: allowing =E2= =80=98guix copy=E2=80=99 to talk to a =E2=80=9Craw=E2=80=9D remote
sto= re=E2=80=94i.e., just /gnu/store + /var/guix/db accessed over SSH.

Hmm that amounts to implementing a subse= t of the daemon.

This reminds me of the much-loved &= quot;agentless" model of software deployment as practiced by Ansible= . [1] To provision, configure, and deploy using Ansible all you need on t= he target machine is Python and sshd. It copies its tools over, does its = work, then cleans up after itself.

If Guix could deploy to any mac= hine with Guile + sshd that would be a pretty compelling story. If you co= uld also substitute perl or python or something more ubiquitous, that wou= ld be even stronger, at the cost of decreased code re-use. Best of all wo= uld be a mini-daemon we could cross-compile for the target architecture, = scp over as a single file, execute there to carry out the rest of the tas= k, then delete if no longer needed. This approach is used to great effect= by the Mgmt automation tool [2].


[1] White paper (pdf, 5 page= s) https://www.ansible.com/hubfs/pdfs/Benefits-of-Agentless-WhitePaper.pd= f
[2] https://github.com/purpleidea/mgmt/
=0D
=0D =0D =0D
=0D =0D =0D ----==_mimepart_5fd822c0beadb_5e542df0227cc--