From: William Denton <wtd@pobox.com>
To: emacs-orgmode@gnu.org
Subject: Using source blocks instead of Ansible
Date: Wed, 27 Apr 2016 14:10:07 -0400 (EDT) [thread overview]
Message-ID: <alpine.DEB.2.02.1604271249340.13940@shell.miskatonic.org> (raw)
[-- 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/
next reply other threads:[~2016-04-27 18:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-27 18:10 William Denton [this message]
2016-05-05 4:12 ` Using source blocks instead of Ansible William Denton
2016-05-05 21:02 ` Karl Voit
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.DEB.2.02.1604271249340.13940@shell.miskatonic.org \
--to=wtd@pobox.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.