Xana/ xana2/ bamamba
Distributed shell scripts for Christmas

When being told about the differences between Puppet and Chef by Puppet fans, a few common talking points emerged. They included the terms “DSL”, “declarative”, and “shell script”.

“Shell script” was probably the most entertaining meme, and referred to how, without dependencies, Chef was just like writing shell scripts in Ruby.

In actuality, a Chef cookbook appears to be roughly 17 files in 7 different directories. Most of them end in .rb, but there is also a metadata.json to keep the metadata.rb company, and perhaps an .rdoc if you like that sort of thing. I have no idea who writes shell scripts this way. I am also stupefied that people say this is easier than Puppet, because I doubt I would want to perform “system administration” by writing one of these things.

So when I started writing my own thing, I contemplated the dependency issue, and for a few minutes decided to be lazy and leave them out entirely. Once it dawned on me, however, that I was then writing shell scripts in Lua, I became ashamed.

If I were going to go that route, why not just set up a git repository with a bunch of shell scripts, and set up cronjobs on each of the clients to do a git pull and run these shell scripts as root? After all, nothing beats shell scripting for shell scripting, not Perl, not Python, not Ruby, and least of all Lua.

So I wrote a dependency resolver. It was easier than I had anticipated and I have vague plans to make it smarter than Puppet's. Then I'm justified in sticking to my Lua “DSL”.

Now Steve has a list of requirements that seem to be relatively mild. I think he could easily get away with a VCS-shellscript-cron setup. The VCS pull can be tunneled over ssh or stunnel or anything else which will provide authentication and encryption, so there is no need for a fancy custom server with its own certificate authority. In short, all the tools are there and you just need glue.

I will continue to pretend that I'll need more complex logic and power that only Lua can give me, so I'll end up doing VCS-Lua-cron until I change my mind.

Posted Thu Dec 24 23:08:51 2009 Tags: bamamba chef configuration deets management puppet
From Hudson to Middlesex

We need to get Jaldhar a video-editing station and some free phase vocoder software.

Posted Fri Sep 18 10:09:21 2009 Tags: autotune bamamba mrs pollak
Ooh, a puzzle!

Riddle:

Totus illae has venio pro , quod is mos totus venio iterum

Answer:

All they /hɑs/ I come for , because he custom all I come again

Posted Fri Mar 13 22:00:00 2009 Tags: bamamba foolmeonce latin translation
and it also allows Keynesians to continue to delude themselves

The funniest thing I've heard about The Economist is that it “is full of neo-liberal absurdity and supported criminals like Reagan and Thatcher.”

Posted Sun Jan 25 08:56:57 2009 Tags: bamamba
useless use of pipe

Andrew,

wc -l <$file
Posted Sat Dec 20 19:08:17 2008 Tags: bamamba redirection wc
The Great Lenny Melodrama

Pierre,

do we trust our release team ;

shall we delay the Lenny release for firmware issues or not (We answered that twice in the past with huge majorities btw) ;

shall we modify the meaning the the SC/DFSG.

How should I vote?

Posted Sun Dec 14 12:25:50 2008 Tags: bamamba dfsg firmware freedom lenny release sc vote
gnutls-cli

Wouter,

You can do the similar things with better-licensed software:

gnutls-cli --insecure -p 443 samba.grep.be

and

gnutls-cli --insecure --starttls -p 587 samba.grep.be
Posted Sun Sep 21 11:21:51 2008 Tags: bamamba gnutls
Floating job control

Francois-Denis, you can get more bash-like behavior by doing setopt nohup, or you can disown the jobs before exiting, or you can background and disown immediately by running program &|.

Also, that silly non-free window manager, ion3, is decent with the small popups.

Posted Wed Jun 11 15:51:11 2008 Tags: bamamba
Ruuuuuucolaaa

Thijs, in the U.S. we call it arugula and have bred all the flavor out of it so it can be just as non-threatening as Iceberg lettuce. Americans who go to the UK will be hesitant to pay £12 for a rocket sandwich, as without being able to see a TSA seal of approval, they will fear the Washington school bus's re-entry shield.

Posted Wed May 7 12:06:23 2008 Tags: bamamba
The bouncer knows all

Jaldhar, you are dressed too nicely to be in the club.

Posted Fri Apr 18 09:58:15 2008 Tags: bamamba