Planet HantsLUG

April 27, 2015

Steve Kemp

Validating puppet manifests via git hooks.

It looks like I'll be spending a lot of time working with puppet over the coming weeks.

I've setup some toy deployments on virtual machines, and have converted several of my own hosts to using it, rather than my own slaughter system.

When it comes to puppet some things are good, and some things are bad, as exected, and as any similar tool (even my own). At the moment I'm just aiming for consistency and making sure I can control all the systems - BSD, Debian GNU/Linux, Ubuntu, Microsoft Windows, etc.

Little changes are making me happy though - rather than using a local git pre-commit hook to validate puppet manifests I'm now doing that checking on the server-side via a git pre-receive hook.

Doing it on the server-side means that I can never forget to add the local hook and future-colleagues can similarly never make this mistake, and commit malformed puppetry.

It is almost a shame there isn't a decent collection of example git-hooks, for doing things like this puppet-validation. Maybe there is and I've missed it.

It only crossed my mind because I've had to write several of these recently - a hook to rebuild a static website when the repository has a new markdown file pushed to it, a hook to validate syntax when pushes are attempted, and another hook to deny updates if the C-code fails to compile.

April 27, 2015 12:00 AM

April 26, 2015

Debian Bits

Debian 8.0 Jessie has been released!

Alt Jessie has been released

There's a new sheriff in town. And her name is Jessie. We're happy to announce the release of Debian 8.0, codenamed Jessie.

Want to install it? Choose your favourite installation media among Blu-ray Discs, DVDs, CDs and USB sticks. Then read the installation manual. For cloud users Debian also offers pre-built OpenStack images ready to use.

Already a happy Debian user and you only want to upgrade? You are just an apt-get dist-upgrade away from Jessie! Find how, reading the installation guide and the release notes.

Do you want to celebrate the release? Share the banner from this blog in your blog or your website!

by Ana Guerrero Lopez at April 26, 2015 01:15 AM

April 20, 2015

Adam Trickett

Bog Roll: My Body Mass Index

About a decade ago I decided to lose some weight. I've always been overweight for my height - or undertall for my weight. I managed to reduce my weight slowly over a number of months by removing snacks & junk, and basic portion control. Combined with more exercise I managed to shed a quite a few kilos.

My diet and exercise regime has largely remained constant, I don't each too much junk and have plenty of fresh fruit and vegetables in my diet and in summer bike quite a bit. However overtime more snacks sneaked in, and portions started to grow again. While I wasn't as heavy as I was a decade ago, I was definetly heavier than I should be.

While I'm still highly dubious of the Body Mass Index (BMI), it being based on flawed maths, I clearly need to target a much lower weight than the last time I reduce my mass. The BMI suggests about 75 kg for my height (1.7 m), and at the moment I'm 83.5 kg and falling by a target rate of about 100 g per day. If I stay on track that's about 26 weeks on my current diet before I tweak it to level off.

So far I've stuck a pretty even rate of about 111 g per day, and I've only had one period of food cravings, after a bike ride on an empty stomach - which was to be expected - and was satisfied with an some fruit and a drink of water.

I've also managed to drop a trouser size, going from 91.5 cm being tight, through being loose, to 86.5 cm being wearable if a little tight after a meal. According to the height to waist theory - which has better science behind it than the BMI - I should aim to wear 81.5 cm trousers and they should be loose.

April 20, 2015 07:07 PM

April 18, 2015

Steve Kemp

skx-www upgraded to jessie

Today I upgraded my main web-host to the Jessie release of Debian GNU/Linux.

I performed the upgraded by changing wheezy to jessie in the sources.list file, then ran:

apt-get update
apt-get dist-upgrade

For some reason this didn't upgrade my kernel, which remained the 3.2.x version. That failed to boot, due to some udev/systemd issues (lots of "waiting for job: udev /dev/vda", etc, etc). To fix this I logged into my KVM-host, chrooted into the disk image (which I mounted via the use of kpartx), and installed the 3.16.x kernel, before rebooting into that.

All my websites seemed to be OK, but I made some changes regardless. (This was mostly for "neatness", using Debian packages instead of gems, and installing the attic package rather than keeping the source-install I'd made to /opt/attic.)

The only surprise was the significant upgrade of the Net::DNS perl-module. Nothing that a few minutes work didn't fix.

Now that I've upgraded the SSL-issue I had with redirections is no longer present. So it was a worthwhile thing to do.

April 18, 2015 12:00 AM

April 14, 2015

Steve Kemp

Subject - Verb Agreement

There's pretty much no way that I can describe the act of cutting a live, 240V mains-voltage, wire in half with a pair of scissors which doesn't make me look like an idiot.

Yet yesterday evening that is exactly what I did.

There were mitigating circumstances, but trying to explain them would make little sense unless you could see the scene.

In conclusion: I'm alive, although I almost wasn't.

My scissors? They have a hole in them.

April 14, 2015 12:00 AM