all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Using source blocks instead of Ansible
@ 2016-04-27 18:10 William Denton
  2016-05-05  4:12 ` William Denton
  2016-05-05 21:02 ` Karl Voit
  0 siblings, 2 replies; 3+ messages in thread
From: William Denton @ 2016-04-27 18:10 UTC (permalink / raw
  To: emacs-orgmode

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1370 bytes --]

Is anyone using Org for remote configuration management instead of a tool like 
Ansible?

For example:  I like to install R from source to /usr/local/src/R/ so that I 
always have the latest version.  I do this (changing the version numbers as 
needed, though looking at it now I see I should set the version number as a 
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 use

:dir /me@remote:

to run that on another machine.  And if I want to run that on multiple machines 
I could change the target as needed.

Has anyone taken this to the next level so it's easier to manage tasks like 
this, more reproducible, tidier, and closer to Ansible or Chef?  If so I'd love 
to see an example.  Or if anyone's tried and found it's just easier to use a 
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 
org-converge, but it's idle:

https://github.com/wallyqs/org-converge

Cheers,

Bill
-- 
William Denton ↔  Toronto, Canada ↔  https://www.miskatonic.org/

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2016-05-05 21:03 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-04-27 18:10 Using source blocks instead of Ansible William Denton
2016-05-05  4:12 ` William Denton
2016-05-05 21:02 ` Karl Voit

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.