Mastodon Mastodon Mastodon Systeemkabouter blog – Tag red_hat

Puppet – Server Error: hiera configuration version 3 cannot be used in an environment

Posted on za 04 februari 2017 in software • Tagged with debian, red_hat, puppet, homelab

Today I found my homelab puppet setup failing. I mostly run the latest released puppet code on my setup and this time it bit me in the ass :

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: hiera configuration version 3 cannot be used in …

Continue reading

Validating puppet code changes using octocatalog-diff

Posted on do 03 november 2016 in software • Tagged with debian, red_hat, puppet

During Puppetconf 2016 Github announces it was releasing one of its internal test tools called octocatalog-diff as open source. What the tools basicly does is compile the catalog for a certain machine using your old and new puppetcode to show you the diff output. This allows you to see the …


Continue reading

Setting up puppet provisioned nagios monitoring

Posted on vr 12 februari 2016 in software • Tagged with debian, red_hat, puppet

Puppet has had native nagios resource types for quite some time. As both a nagios and a puppet fan, I really liked the idea of not setting up any monitoring but have some base level of monitoring on every managed system automatically. Deploying new systems involves a lot of steps …


Continue reading

Check if a Red Hat / CentOS server needs a reboot after updates

Posted on ma 08 februari 2016 in software • Tagged with red_hat

At a client site updates were installed on Red Hat systems, but they were not always rebooted after a kernel update. So I needed a quick way to test if a server had a newer kernel installed than it was currently running. Just to save it for future use :

#!/bin …

Continue reading

git pre-commit hook for puppet, erb and yaml files

Posted on za 07 november 2015 in software • Tagged with debian, red_hat, puppet

A pre-commit hook is a great way to run custom actions before handing over your work to GIT (and thus your CI tool chain). For puppet related GIT repositories I’ve assembled a pre-commit hook that checks the puppet code, changed ERB templates and any changed YAML files for formatting …


Continue reading