* Orgmode for managing OS configuration
[not found] ` <CA+GKSr7F+RGjZSLkxFkJTcQVg3eLFqm41y1kTi+CnWvimxPQ1w@mail.gmail.com>
@ 2016-11-03 11:44 ` Giacomo M
2016-11-03 13:50 ` Stefan Huchler
` (3 more replies)
0 siblings, 4 replies; 8+ messages in thread
From: Giacomo M @ 2016-11-03 11:44 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 559 bytes --]
Dear all,
I would like to clean up my Linux setup to be easily replicable. I am
considering keeping everything in one org file, and then tangling files
(e.g. exec scripts, systemd service unit files) and executing bash snippets
(e.g. for installing packages and sed'ing config files). Then one would
need just emacs and git (or rsync) to start with.
Does anybody have experience with this? Is the experience positive or
negative?
Also, should I just run emacs as root? Or using somehow sudo non
interactively for babel blocks execution?
Thanks,
Giacomo M
[-- Attachment #2: Type: text/html, Size: 659 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Orgmode for managing OS configuration
2016-11-03 11:44 ` Orgmode for managing OS configuration Giacomo M
@ 2016-11-03 13:50 ` Stefan Huchler
2016-11-03 14:22 ` Giacomo M
2016-11-03 16:02 ` William Denton
` (2 subsequent siblings)
3 siblings, 1 reply; 8+ messages in thread
From: Stefan Huchler @ 2016-11-03 13:50 UTC (permalink / raw)
To: emacs-orgmode
Giacomo M <jackjackk@gmail.com> writes:
> Dear all,
> I would like to clean up my Linux setup to be easily replicable. I am
> considering keeping everything in one org file, and then tangling
> files (e.g. exec scripts, systemd service unit files) and executing
> bash snippets (e.g. for installing packages and sed'ing config files).
> Then one would need just emacs and git (or rsync) to start with.
>
> Does anybody have experience with this? Is the experience positive or
> negative?
>
> Also, should I just run emacs as root? Or using somehow sudo non
> interactively for babel blocks execution?
>
> Thanks,
>
> Giacomo M
Do you know about nixos and guixsd? Sounds like you want to implement
here something similar, except less good cause this distributions have
also atomic updates and features like testing a configuration and
rollback features and some sort of conflict management, also it can
switch "profiles" without reboots and stuff like that.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Orgmode for managing OS configuration
2016-11-03 13:50 ` Stefan Huchler
@ 2016-11-03 14:22 ` Giacomo M
2016-11-03 14:30 ` PICCA Frederic-Emmanuel
2016-11-03 20:24 ` John Hendy
0 siblings, 2 replies; 8+ messages in thread
From: Giacomo M @ 2016-11-03 14:22 UTC (permalink / raw)
To: Stefan Huchler; +Cc: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 1892 bytes --]
Dear Stefan,
thanks for the hints, I wasn't aware of these projects. While they sound
appealing, I would like to stick to my current distribution (archlinux),
for a variety of reasons (e.g. Im updating my raspberry which seems more
supported by arch than nixos, I'm more familiar with it, I like the vanilla
approach and wiki). Anyway, I'll look more into these options.
Still, having one or few org files documenting AND implementing my setup,
apart from being easy potential blog posts, I think would help me keeping
things under control (especially over years-long time horizons). It is
working well for my emacs conf (before my .emacs was a mess), but not sure
if it's the same scaling up to OS (e.g. chmod when tangling, root user
privileges when executing, or other things I'm not aware of).
Il 03 Nov 2016 2:55 PM, "Stefan Huchler" <stefan.huchler@mail.de> ha
scritto:
> Giacomo M <jackjackk@gmail.com> writes:
>
> > Dear all,
> > I would like to clean up my Linux setup to be easily replicable. I am
> > considering keeping everything in one org file, and then tangling
> > files (e.g. exec scripts, systemd service unit files) and executing
> > bash snippets (e.g. for installing packages and sed'ing config files).
> > Then one would need just emacs and git (or rsync) to start with.
> >
> > Does anybody have experience with this? Is the experience positive or
> > negative?
> >
> > Also, should I just run emacs as root? Or using somehow sudo non
> > interactively for babel blocks execution?
> >
> > Thanks,
> >
> > Giacomo M
>
> Do you know about nixos and guixsd? Sounds like you want to implement
> here something similar, except less good cause this distributions have
> also atomic updates and features like testing a configuration and
> rollback features and some sort of conflict management, also it can
> switch "profiles" without reboots and stuff like that.
>
>
>
[-- Attachment #2: Type: text/html, Size: 2417 bytes --]
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Orgmode for managing OS configuration
2016-11-03 14:22 ` Giacomo M
@ 2016-11-03 14:30 ` PICCA Frederic-Emmanuel
2016-11-03 20:24 ` John Hendy
1 sibling, 0 replies; 8+ messages in thread
From: PICCA Frederic-Emmanuel @ 2016-11-03 14:30 UTC (permalink / raw)
To: Giacomo M, Stefan Huchler; +Cc: emacs-orgmode@gnu.org
you can have a look at here
https://propellor.branchable.com/
It should be possible to use emacs to edit the config.hs file.
Now you need to extend it for arch .
Cheers
Frederic
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Orgmode for managing OS configuration
2016-11-03 11:44 ` Orgmode for managing OS configuration Giacomo M
2016-11-03 13:50 ` Stefan Huchler
@ 2016-11-03 16:02 ` William Denton
2016-11-03 18:20 ` Grant Rettke
2016-11-26 18:26 ` Karl Voit
3 siblings, 0 replies; 8+ messages in thread
From: William Denton @ 2016-11-03 16:02 UTC (permalink / raw)
To: Giacomo M; +Cc: emacs-orgmode
On 3 November 2016, Giacomo M wrote:
> I would like to clean up my Linux setup to be easily replicable. I am
> considering keeping everything in one org file, and then tangling files
> (e.g. exec scripts, systemd service unit files) and executing bash snippets
> (e.g. for installing packages and sed'ing config files). Then one would
> need just emacs and git (or rsync) to start with.
I'm doing this in a small way with Conforguration:
https://github.com/wdenton/conforguration
It's just personal files right now, nothing in /etc/ or up there, but it might
be useful. I'll be configuring a new (Ubuntu) machine or two soon so I'll be
adding to it with packages and some system configuration information.
Bill
--
William Denton :: Toronto, Canada :: https://www.miskatonic.org/
Caveat lector.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Orgmode for managing OS configuration
2016-11-03 11:44 ` Orgmode for managing OS configuration Giacomo M
2016-11-03 13:50 ` Stefan Huchler
2016-11-03 16:02 ` William Denton
@ 2016-11-03 18:20 ` Grant Rettke
2016-11-26 18:26 ` Karl Voit
3 siblings, 0 replies; 8+ messages in thread
From: Grant Rettke @ 2016-11-03 18:20 UTC (permalink / raw)
To: Giacomo M; +Cc: emacs-orgmode@gnu.org
On Thu, Nov 3, 2016 at 6:44 AM, Giacomo M <jackjackk@gmail.com> wrote:
>
> Does anybody have experience with this?
Yes. Here is my top level provisioning document at the correct headline:
https://github.com/grettke/osx-provision/blob/master/El-Capitan/provisioning.md#provisioning
And here are all of the tangled files:
https://github.com/grettke/osx-provision/tree/master/El-Capitan
The scripts are all in Bash for the computer and Org-Mode for the
human (there are manual steps required).
This is for OS X and the concepts all apply to Linux.
>
> Is the experience positive or negative?
Positive. It makes it easy to break up your provisioning into separate
scripts. My scripts are supposed to be idempotent so it is easy to
play around and try new stuff. The Org document makes it easy to make
sense of everything.
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Orgmode for managing OS configuration
2016-11-03 14:22 ` Giacomo M
2016-11-03 14:30 ` PICCA Frederic-Emmanuel
@ 2016-11-03 20:24 ` John Hendy
1 sibling, 0 replies; 8+ messages in thread
From: John Hendy @ 2016-11-03 20:24 UTC (permalink / raw)
To: Giacomo M; +Cc: emacs-orgmode, Stefan Huchler
On Thu, Nov 3, 2016 at 9:22 AM, Giacomo M <jackjackk@gmail.com> wrote:
> Dear Stefan,
>
> thanks for the hints, I wasn't aware of these projects. While they sound
> appealing, I would like to stick to my current distribution (archlinux), for
> a variety of reasons (e.g. Im updating my raspberry which seems more
> supported by arch than nixos, I'm more familiar with it, I like the vanilla
> approach and wiki). Anyway, I'll look more into these options.
Made me chuckle. I'm on Arch and have been for years after trying a
bunch of others. It's hard to explain but you just find a distro that
works and you like it... and it's hard to imagine going elsewhere! We
had the same thought when accomplishing this through another distro
was suggested (even if those other distros are amazing).
I'd love to hear where you get with this, and the idea is quite
intriguing. It's pretty rare I wipe and re-install, but I do like to
keep configuration files backed up so I don't have to re-figure-out
everything between my last install and the next. I have a cron job
that grabs config files of interest and stores them in one folder;
periodically I push to git. That's as far as I got and generally on a
new system I just pull them in one by one as I remember that I need
them.
Packages can cause this issue... after a year or two on a system,
there's packages that say they were explicitly installed, but I don't
recall why. Some way to track the evolution of a system along with
notes/links of where you found some fix or solution would be really
cool (and well suited to Org!).
I'd like to see/hear about what you end up with!
John
>
> Still, having one or few org files documenting AND implementing my setup,
> apart from being easy potential blog posts, I think would help me keeping
> things under control (especially over years-long time horizons). It is
> working well for my emacs conf (before my .emacs was a mess), but not sure
> if it's the same scaling up to OS (e.g. chmod when tangling, root user
> privileges when executing, or other things I'm not aware of).
>
>
> Il 03 Nov 2016 2:55 PM, "Stefan Huchler" <stefan.huchler@mail.de> ha
> scritto:
>>
>> Giacomo M <jackjackk@gmail.com> writes:
>>
>> > Dear all,
>> > I would like to clean up my Linux setup to be easily replicable. I am
>> > considering keeping everything in one org file, and then tangling
>> > files (e.g. exec scripts, systemd service unit files) and executing
>> > bash snippets (e.g. for installing packages and sed'ing config files).
>> > Then one would need just emacs and git (or rsync) to start with.
>> >
>> > Does anybody have experience with this? Is the experience positive or
>> > negative?
>> >
>> > Also, should I just run emacs as root? Or using somehow sudo non
>> > interactively for babel blocks execution?
>> >
>> > Thanks,
>> >
>> > Giacomo M
>>
>> Do you know about nixos and guixsd? Sounds like you want to implement
>> here something similar, except less good cause this distributions have
>> also atomic updates and features like testing a configuration and
>> rollback features and some sort of conflict management, also it can
>> switch "profiles" without reboots and stuff like that.
>>
>>
>
^ permalink raw reply [flat|nested] 8+ messages in thread
* Re: Orgmode for managing OS configuration
2016-11-03 11:44 ` Orgmode for managing OS configuration Giacomo M
` (2 preceding siblings ...)
2016-11-03 18:20 ` Grant Rettke
@ 2016-11-26 18:26 ` Karl Voit
3 siblings, 0 replies; 8+ messages in thread
From: Karl Voit @ 2016-11-26 18:26 UTC (permalink / raw)
To: emacs-orgmode
* Giacomo M <jackjackk@gmail.com> wrote:
>
> Dear all,
> I would like to clean up my Linux setup to be easily replicable. I am
> considering keeping everything in one org file, and then tangling files
> (e.g. exec scripts, systemd service unit files) and executing bash snippets
> (e.g. for installing packages and sed'ing config files). Then one would
> need just emacs and git (or rsync) to start with.
>
> Does anybody have experience with this? Is the experience positive or
> negative?
I posted my approach on this list in May:
> From: Karl Voit <devnull@Karl-Voit.at>
> Subject: Re: Using source blocks instead of Ansible
> Message-ID: <2016-05-05T22-49-08@devnull.Karl-Voit.at>
> Date: Thu, 5 May 2016 23:02:28 +0200
(Since the web interface of gmane is down for the moment, I can't
give you a link.)
I am not using tangling. I limit myself to just install packages and
modify settings via search/replace instead.
HTH
--
mail|git|SVN|photos|postings|SMS|phonecalls|RSS|CSV|XML to Org-mode:
> get Memacs from https://github.com/novoid/Memacs <
https://github.com/novoid/extract_pdf_annotations_to_orgmode + more on github
^ permalink raw reply [flat|nested] 8+ messages in thread
end of thread, other threads:[~2016-11-26 18:27 UTC | newest]
Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CA+GKSr7GAvW-iZTDEnAM6EdU=rp3QZi7HmFWG_TV3My-UyS2MA@mail.gmail.com>
[not found] ` <CA+GKSr7rvUMwpSxkFtVuEb+48qoRn3WLVuXbd0yjuha4oj9TiQ@mail.gmail.com>
[not found] ` <CA+GKSr5NeWOe259b7YKrg==f=3KFjyrkf6ed4X6+g5rjeVWUjw@mail.gmail.com>
[not found] ` <CA+GKSr5o_t879MsGSv+dhKo_QK+ktXkzfwgn8OauZ8AhC_UEPA@mail.gmail.com>
[not found] ` <CA+GKSr4-pP2pzwvJaL2AdNYZpiWYD177iOXUN3fRxZ9fWpceGQ@mail.gmail.com>
[not found] ` <CA+GKSr5CAweuBR2C8xZRdHKdd=mY+31NKe3y4usv0=r-8S2NPg@mail.gmail.com>
[not found] ` <CA+GKSr4HpaNm2GMeJEHk5atuf43=NOGZ-jogqApMv2DPMzdRvQ@mail.gmail.com>
[not found] ` <CA+GKSr54xVPiSoWYfAup-KP1QPp_67HjVDryMpfHLmgWq24Mmw@mail.gmail.com>
[not found] ` <CA+GKSr5PQ8Gk38DU4LkWY4a3xqunr+8NzuCXrO6g7bng1taEWg@mail.gmail.com>
[not found] ` <CA+GKSr6nQSjwBttRCT6sMyUyE_RdH7uf=teKyAkHQY2Wv-EwJA@mail.gmail.com>
[not found] ` <CA+GKSr4A_XAicTpi7m5tVy8YK-aGcjft0Gs5HfeqR_e8_YjzHw@mail.gmail.com>
[not found] ` <CA+GKSr6M1MiykhQazYpUB3vGoXSZObk7Ls569Muqm_5Nof7KdA@mail.gmail.com>
[not found] ` <CA+GKSr52E_m04cWnTVfK1Uct-WqRC+WdtGnt9WQegc1uMMR-sA@mail.gmail.com>
[not found] ` <CA+GKSr6G16qX069Xi1kOHTEDhxTXV_b9vP_n+RFnSQh=jTzC7Q@mail.gmail.com>
[not found] ` <CA+GKSr5k1YhaOR2h1E1wY45Zj-sPkp4bFJNM0JfGxbc0GxPtKg@mail.gmail.com>
[not found] ` <CA+GKSr7F+RGjZSLkxFkJTcQVg3eLFqm41y1kTi+CnWvimxPQ1w@mail.gmail.com>
2016-11-03 11:44 ` Orgmode for managing OS configuration Giacomo M
2016-11-03 13:50 ` Stefan Huchler
2016-11-03 14:22 ` Giacomo M
2016-11-03 14:30 ` PICCA Frederic-Emmanuel
2016-11-03 20:24 ` John Hendy
2016-11-03 16:02 ` William Denton
2016-11-03 18:20 ` Grant Rettke
2016-11-26 18:26 ` Karl Voit
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).