Re:Marelle: logic programming for devops
by e12e on Saturday November 09, 2013 @09:22AM
(#6701691)
Also like the bootstrap.sh - very nicely structured and easier to verify than many others I've seen. I'd still prefer these scripts to output missing dependencies that calling sudo -- but otherwise very nice.
That is, rather than:
function install_git() {
echo 'Trying to install git'
case $(uname -s) in
#...
Linux)
if has_exec apt-get; then apt_update
sudo apt-get install -y git
#...
else bail "Unknown linux variant"
fi
;;
*)
bail "Unknown operating system $(uname -s)"
;;
esac
}
Simply aggreagate a list of missing packages, and ouput (based on a
similar case-statement for detetining host):
Re:Marelle: logic programming for devops
by lars512 on Saturday November 09, 2013 @05:10PM
(#6703541)
Thanks! :)
It's a little aggressive in calling sudo mainly because I'm using it to bootstrap new systems non-interactively. I don't want it to ask any questions at all, just to go.
That is, rather than:
Simply aggreagate a list of missing packages, and ouput (based on a similar case-statement for detetining host): https://github.com/larsyencken/marelle/blob/master/bootstrap...