Category Archives: Linux

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

Linux Short Tip: systemd-networkd and DNS servers

You maybe have noticed that you can configure DNS servers in your systemd-networkd settings, but these addresses don’t appear in /etc/resolv.conf. You need to enable/start systemd-resolved, this daemon checks global DNS settings in /etc/systemd/resolved.conf, DNS settings for each link from … Continue reading

Posted in 30in30, General, Linux, Short Tips | 2 Comments

Short Tip: Replacing a failed drive in mdadm softwareraid

Sometimes you check your fileserver and your raid looks like this: # cat /proc/mdstat Personalities : [raid1] [raid6] [raid5] [raid4] md125 : active (auto-read-only) raid6 sdl[1] sdh[7] sdf[5] sdk[2] sdg[6] sdm[8] sdi[0] sdn[10] sde[4] 23441080320 blocks super 1.2 level 6, … Continue reading

Posted in 30in30, General, Linux, Short Tips | Leave a comment

Doing IPv6 with systemd-networkd – the correct way

Understanding the docs: I blogged about IPv6 with systemd-networkd in Arch Linux step by step installation guide and provided a hacky workaround to get a working IPv6 address configured. I read through the docs again and hand a longer discussion … Continue reading

Posted in 30in30, General, Internet found pieces, Linux | 1 Comment

Linux Short Tip: Correct IPv6 with ferm firewalling

I mentioned ferm in my last post about gluster (an iptables/ip6tables abstraction layer in perl with a nice firewall config). The default rule-set looks like this: Most people attend to C&P that blog and wrap it in domain ip6 {} … Continue reading

Posted in 30in30, General, Linux, Short Tips | Leave a comment

Short Tip: Setup glusterfs share on Arch Linux

I made a detailed tutorial for a Arch Linux installation a few days back. This is a quick follow up post to create a Distributed-Replicated gluster share. The goal is to create a mirror for several linux distributions. A mirror … Continue reading

Posted in 30in30, General, Linux, Short Tips | 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

Arch Linux step by step installation guide

I recently created a simple step by step guide to get a basic Arch Linux running on a VPS. Most providers don’t provide standard Arch Linux images but a VNC console + ISO upload solution, this guide is made for … Continue reading

Posted in 30in30, General, Linux | 5 Comments