Category Archives: Puppet

Alles rund um Automatisierung und Puppet

Short Tip: Installing msgpack on outdated boxes (ruby1.9.1)

I’m using msgpack to serialize the data between my puppet agents and the masters. Recently I had to puppetize an old Debian Wheezy box. I’ve to install msgpack in advance: # gem install msgpack Building native extensions. This could take … Continue reading

Posted in General, Linux, Puppet, Short Tips | Leave a comment

rubocop-rspec magic: Fixing RSpec/InstanceVariable

We recently introduced RSpec/InstanceVariable into our RuboCop configuration at Vox Pupuli. Using instance variables is not considered best practice so we are currently migrating away from them. Here is en example of the old code style: The variables are later … Continue reading

Posted in General, Linux, Puppet | Leave a comment

Create a simple streaming replication for postgres with puppet

I need to build a postgres setup for a important database. The idea is to one master and one-many slaves that can serve read only access. The slaves will work in a hot-standby mode where they continuously receive data from … Continue reading

Posted in General, Linux, Puppet | Leave a comment

Create ssh keys with puppet on a server + pubkey exchange

There are a few solutions to generate ssh keys on a puppet master/server or copy them from hiera to a box. I have got several boxes and every box needs to have ssh access to every other box. I don’t … Continue reading

Posted in General, IT-Security, Linux, Puppet | 1 Comment

Fixing and improving rspec tests

Today I stumbled across our puppet module for gluster. My goal for the next days: modulesync with voxpupuli default settings Fix rspec tests to work with our new test matrix (newer puppet versions and STRICT_VARIABLES=yes) Make a new release for … Continue reading

Posted in 30in30, General, Linux, Puppet | Leave a comment

Getting started with Hiera

I am using puppet since the end of 2012 and I finally found a use case for Hiera. This is my way of implementing it: What is Hiera Hiera is split into two parts: The backend is a key/value store … Continue reading

Posted in 30in30, General, Linux, Puppet | Leave a comment

DRY – Don’t Repeat Yourself

Don’t Repeat Yourself – This is an important mantra, I’m trying to work like this for the past years, but the fancy abbreviation never came up my mind, I just found it online. What does it mean? We system administrators … Continue reading

Posted in 30in30, General, Linux, Puppet | 1 Comment

#puppethack is coming again!

The event description: ########### Join us for #puppethack, our online puppet community hack day, on December 15th! #puppethack is a collaborative, relaxed online puppet community hack day. It will be an opportunity for Puppet community members and Puppet Labs employees … Continue reading

Posted in 30in30, General, Linux, Nerd Stuff, Puppet | Leave a comment

Augeas Bug while playing with ” in /etc/default/grub

Today seems to be the day of buggy software. I am using the Puppet module herculesteam/augeasproviders_grub to manage entries in /etc/default/grub on Debian and CentOS systems, here is an example: This should result in the following line in /etc/default/grub: GRUB_CMDLINE_LINUX_DEFAULT=”nomodeset … Continue reading

Posted in 30in30, General, Linux, Puppet | Leave a comment

Link collection of the (last) week(s)

Some interesting and important happenings and things I found in the past week (and prior): Differences between shell types + their workflow Puppet 4.3 got released! 2.2.5 New Nmap! after 3.5 years of development Commitmas is comming! (still thinking about … Continue reading

Posted in 30in30, General, Internet found pieces, IT-Security, Linux, Puppet | Leave a comment