Puppet: Need major version fact

I've often needed to seperate settings pr. a distros major relase in puppet.

f.ex. CentOs-6 is different than CentOs-5 -  but there's no difference between v5.6 and 5.7.

Unfortunately there's no fact in puppet that gives this. I've had an $osversion fact - which simply concat'ed $operatingsystem and $lsbmajdistrelease - but that last fact depends on lsbdistrelease - which depends on lsb_release, which on Red Hat 6 is delivered by redhat-lsb package - which pulls in ~90 packages!

Puppet foredrag

Så fik jeg holdt mit foredrag hos DKUUG om  system konfigurationsværktøjet Puppet - og der var forbavsende (for mig :) mange der mødte op.

Til dem der skulle have lyst så har jeg vedhæftet slides i PDF format og DKUUG vil vist have en video med foredraget oppe på et tidspunkt.

Crash chrome :)

 Today I found a sure-fire way to crash Google chrome (and probably chromium as well).

Try viewing this in Chrome: http://vsen.dk/files/chromecrash.html

The trick is to put a large file (f.ex. 3,8MB ) as the icon file.. :)

Byg dit eget hus - projekt beskrivelse

Jeg har siden September 2010 været igang med at undersøge mulighederne for at få bygget et nyt hus, pga. div. problemer med mit gamle (se tidligere blog posts :)

Want a small media capable computer with a large disk capacity?

I wanted to setup a new setup, for a new version of mythtv (0.24), since I wasn't allowed to mess with the existing setup (family would kill me if I left it unworking at any stage :)

I tried to find a computer with an Nvidia ION-2 chipset  and room for a 3½" disk - as I wanted this new setup to work as both backend and frontend.

Så vandt vi vores forsikringssag

Vi har nu i ca.3 år, haft en forsikringssag kørende mod vores ejerskifteforsikring, pga. et manglende fundament på vores hus, som iflg. fagfolk skulle have været der og som iflg. advokaten også er dækket af deres betingelser.

Det har de så bestridt i 3 år - ved at bede om "flere informationer" og påstå at "det er helt normalt" osv. osv. - men idag fik vi lige brev fra ankenævnet (som vi har sendt sagen til) at forsikringsselskabet har opgivet sagen og givet os medhold.

Endelig muligt at indsamle til donationer i DK?

Jeg har længe, gerne villet kunne indsamle donationer på den ene eller anden måde, så mine kunder i Linuxpusher enten automatisk (eller ved at tilvælge det) kunne støtte deres favorit distribution økonomisk.

Desværre fik jeg et rungende nej fra Skattefar på mit ansøgning om et bindende svar for nogle år siden - der ville skulle svares personskat af alle donationer - før jeg kunne sende dem af sted :(

Derfor kan man idag, kun støtte distributionerne økonomisk, via Linuxpusher, ved at købe nogle af de varer (f.ex. Ubuntu's officielle CD osv.)som vi køber derfra.

Test ssh keys script - using expect instead

I had a problem with my previous script - often ssh-add would hang -executing echo continuously - which was marked as defunct :(

I figure I'd rewrite it in expect - to also make the script runnable outside of cron - and that proved a little bit challenging - but I got it solved, and figured I'd share it:

Do you test your users ssh-keys for empty passphrases?

Using ssh-keys for access to servers can be very nice as one can use ssh-agent to temporarily store the unencrypted key - and thus work all day - without continuously entering your password for the key - and you can easily decide (using authorized_keys file on the server) which keys gets to login as which users - and what commands they may execute.

But - it's my experience that many (developers f.ex.) find a need to have an empty passphrase for their key - a bad thing to do - if you want a bit of security :)

aptitude bug in specific version handling

Aptitude has an annoying bug, which will probably never be fixed upstream :( - but aptitude is the only tool that supports downgrading of package versions (with correct --force options) none-interactively (as done by f.ex. puppet).

If you want to install a package in a specific version (f.ex. for releasing site code in a specific version) - like this: