From mboxrd@z Thu Jan 1 00:00:00 1970 From: William Denton Subject: Using source blocks instead of Ansible Date: Wed, 27 Apr 2016 14:10:07 -0400 (EDT) Message-ID: Mime-Version: 1.0 Content-Type: MULTIPART/MIXED; BOUNDARY="658601964-1226973362-1461779571=:13940" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49256) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avTuf-0002rp-Ec for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 14:10:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1avTub-0002Ts-BC for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 14:10:13 -0400 Received: from shell.miskatonic.org ([65.39.236.119]:36257) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1avTub-0002SP-7H for emacs-orgmode@gnu.org; Wed, 27 Apr 2016 14:10:09 -0400 Received: from localhost (localhost [127.0.0.1]) by shell.miskatonic.org (Postfix) with ESMTP id 71B2AFA0BCF for ; Wed, 27 Apr 2016 14:10:07 -0400 (EDT) Content-ID: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode@gnu.org This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. --658601964-1226973362-1461779571=:13940 Content-Type: TEXT/PLAIN; CHARSET=UTF-8; format=flowed Content-ID: Content-Transfer-Encoding: quoted-printable Is anyone using Org for remote configuration management instead of a tool= like=20 Ansible? For example: I like to install R from source to /usr/local/src/R/ so tha= t I=20 always have the latest version. I do this (changing the version numbers = as=20 needed, though looking at it now I see I should set the version number as= a=20 variable): #+BEGIN_SRC shell cd /usr/local/src/R curl -O http://cran.utstat.utoronto.ca/src/base/R-3/R-3.2.4.tar.gz tar xzvf R-3.2.4.tar.gz cd R-3.2.4 ./configure make make check cd .. rm -f R Rscript ln -s R-3.2.4/bin/R R ln -s R-3.2.4/bin/Rscript Rscript #+END_SRC I do that on a few machines and copy and paste as needed. Now, I could u= se :dir /me@remote: to run that on another machine. And if I want to run that on multiple ma= chines=20 I could change the target as needed. Has anyone taken this to the next level so it's easier to manage tasks li= ke=20 this, more reproducible, tidier, and closer to Ansible or Chef? If so I'= d love=20 to see an example. Or if anyone's tried and found it's just easier to us= e a=20 proper purpose-built system, that's good to know too. Looking in the archives I see there was mention a couple of years ago of=20 org-converge, but it's idle: https://github.com/wallyqs/org-converge Cheers, Bill --=20 William Denton =E2=86=94 Toronto, Canada =E2=86=94 https://www.miskaton= ic.org/ --658601964-1226973362-1461779571=:13940--