agile sysadmin

by Ferenc Erki

OpenWrt support in (R)?ex

(R)?ex is a configuration management framework written in Perl which can be used to simplify and automate various system administrator tasks from deployment management to data center automation. OpenWrt is a Linux distribution for embedded devices and it is widely used on different network equipment by replacing their original firmware. Soon you can combine the power of these two as OpenWrt support is coming into Rex!

Continue reading …

Improved ebuild for Arno’s iptables firewall

Back in December 2012 I was frustrated by a few issues about using net-firewall/arno-iptables-firewall on Gentoo. Only an old version was available through portage and that had its problems working with recent versions of iptables as state matching module’s functionality was being replaced by conntrack module – among other problems like ancient homepage and initscript.

I collected the various pieces spread across a few bugs, patched them together and filed it as an overall version bump to 2.0.1d and volunteered for proxy maintainership as well. I also sent the initscript changes upstream (originally filed to Gentoo’s Bugzilla by Marius Brehler).

However I wasn’t fully comfortable with some details here and there in the ebuild and decided to give it a more thorough look. The result is 30-something commits for the 2.0.1d-r1 ebuild :) They contain roughly the following:

The revamped ebuild is already in the portage tree. Thanks goes to Arno van Amersfoort for the firewall script and to Markos Chandras (hwoarang) for reviewing and committing the ebuild, and of course to everyone else who helped me via the firewall mailing list and #gentoo-dev-help.

Unattended Ubuntu install in a VM

Edit: you may want to check out my updated post in this topic.

In one of my projects I needed to quickly install and/or reproduce virtual Ubuntu servers using QEMU+KVM. It’s nothing difficult but I decided to record the required steps here so I don’t have to remember it all the time. The overall process is the following:

Continue reading …