Marelle: prolog for devops
larsyencken <[email protected]>
| Newsgroups | gmane.comp.ai.prolog.swi |
|---|---|
| Message-ID | <[email protected]> |
Hi all,
You might find interesting an extremely practical SWI-Prolog project for
configuration management, Marelle.
http://larsyencken.github.io/marelle/
At it's core, you define a handful of rules which describe a target, how to
check if it's been met, and how to meet it. For example, to install
supervisor Ubuntu 12.04:
pkg(supervisor).
met(supervisor, linux(precise)) :-
isfile('/usr/bin/supervisorctl').
meet(supervisor, linux(precise)) :-
bash('sudo apt-get install -y supervisor').
In your shell, running:
$ marelle meet supervisor
will install it, only if it's missing. You can compose these targets using a
depends clause, which means you can manage quite complex setups using
Marelle.
Have a play, feedback is most welcome.
Lars
--
View this message in context: http://swi-prolog.996271.n3.nabble.com/Marelle-prolog-for-devops-tp13409.html
Sent from the SWI Prolog mailing list archive at Nabble.com.