<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Sysadmin on René Moser</title><link>https://www.renemoser.net/categories/sysadmin/</link><description>Recent content in Sysadmin on René Moser</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Mon, 19 Mar 2018 22:23:30 +0100</lastBuildDate><atom:link href="https://www.renemoser.net/categories/sysadmin/index.xml" rel="self" type="application/rss+xml"/><item><title>Vultr Firewalling with Ansible</title><link>https://www.renemoser.net/blog/2018/03/19/vultr-and-firewalling/</link><pubDate>Mon, 19 Mar 2018 22:23:30 +0100</pubDate><guid>https://www.renemoser.net/blog/2018/03/19/vultr-and-firewalling/</guid><description>This is the second part of a post series What&amp;rsquo;s new in Ansible 2.5. In the previous post we learned the basic steps to deploy a server on Vultr.
In this follow up post, you will see how we can secure our server.
This post was written in 2018 for Ansible 2.5, when the Vultr modules shipped with Ansible itself as vr_*. They were renamed to vultr_* in Ansible 2.8 and today live in the vultr.</description></item><item><title>Begin Vultr With Ansible</title><link>https://www.renemoser.net/blog/2018/03/18/vultr-with-ansible/</link><pubDate>Sun, 18 Mar 2018 15:14:49 +0100</pubDate><guid>https://www.renemoser.net/blog/2018/03/18/vultr-with-ansible/</guid><description>Ansible 2.5 is just around the corner, perfect timing to show some of the new features I was involved with and included in this release. This is the first part of a post series What&amp;rsquo;s new in Ansible 2.5.
This post was written in 2018 for Ansible 2.5, when the Vultr modules shipped with Ansible itself as vr_*. They were renamed to vultr_* in Ansible 2.8 and today live in the vultr.</description></item><item><title>Decoupling Ansible Handlers</title><link>https://www.renemoser.net/blog/2017/09/02/ansible-handlers-listen/</link><pubDate>Sat, 02 Sep 2017 00:00:00 +0000</pubDate><guid>https://www.renemoser.net/blog/2017/09/02/ansible-handlers-listen/</guid><description>Since version Ansible 2.2, so quite a while, there is another way to notify a handler or a couple of handlers or no handlers. No handlers? Right, this sounds a bit funny, doesn&amp;rsquo;t it? Well, it is a bit comparable with talking to kids: if no one is listening, no one will react :).
Notifying Handlers Before 2.2, there was only one way to notify a handler, by notifying the name of the handler:</description></item><item><title>Manage Exoscale DNS with Ansible</title><link>https://www.renemoser.net/blog/2017/08/19/exoscale-dns-with-ansible/</link><pubDate>Sat, 19 Aug 2017 00:00:00 +0000</pubDate><guid>https://www.renemoser.net/blog/2017/08/19/exoscale-dns-with-ansible/</guid><description>Introduction In this post I will show you how to use Ansible to configure DNS records on Exoscale, a Swiss public cloud provider. Exoscale offers a DNS service at an affordable price, with geo replication, anycast and an API.
The two modules we are going to use, exo_dns_domain and exo_dns_record, are ones I wrote, and they have shipped with Ansible since version 2.2.0.
This post was written in 2017, when these modules were part of Ansible itself.</description></item><item><title>Manage Bind and zone files using Ansible</title><link>https://www.renemoser.net/blog/2014/04/28/manage-bind-and-zones-files-using-ansible/</link><pubDate>Mon, 28 Apr 2014 00:00:00 +0000</pubDate><guid>https://www.renemoser.net/blog/2014/04/28/manage-bind-and-zones-files-using-ansible/</guid><description>You might have seen my quite simple role ansible-bind-role which lets you manage your bind configs and syncs your zone files.
Precondition First let me explain why zones files are not generated in this role: My precondition was, that zones might come from different sources. They may be generated from an application or rsynced from anywhere else.
Further, I didn&amp;rsquo;t want to force people to handle zone files the one way.</description></item><item><title>Using Vagrant to test Ansible roles</title><link>https://www.renemoser.net/blog/2014/03/27/using-vagrant-for-ansible-roles/</link><pubDate>Thu, 27 Mar 2014 00:00:00 +0000</pubDate><guid>https://www.renemoser.net/blog/2014/03/27/using-vagrant-for-ansible-roles/</guid><description>Continuous integration will tell you whether a role still applies cleanly, but while you are writing one you want a faster loop: a machine you can throw away, apply the role to, break, and recreate. A local hypervisor such as VirtualBox plus Vagrant gives you exactly that for a role like ansible-role-ntp.
This post was written in 2014 for Vagrant 1.x and Ansible 1.x. The Vagrantfile below has been updated so it still works: the original precise32 box and the files.</description></item><item><title>A European timetable in your console</title><link>https://www.renemoser.net/blog/2013/12/30/european-timetable-console/</link><pubDate>Mon, 30 Dec 2013 00:00:00 +0000</pubDate><guid>https://www.renemoser.net/blog/2013/12/30/european-timetable-console/</guid><description>If you want a properly geeky departure board for your train connections — on your own terminal, or on a wallboard at an event — you can have one in two commands.
This post is from 2013. fahrplan is a thin client over the public transport.opendata.ch API and has seen little development since; the API itself is unofficial and its response format has changed over the years. Note also that pip install into the system Python is refused on current distributions — use pipx or a virtual environment, as below.</description></item><item><title>Extracting MP3 audio from an AVI file with ffmpeg</title><link>https://www.renemoser.net/blog/2009/11/22/convert-avi-into-mp3-on-linux/</link><pubDate>Sun, 22 Nov 2009 00:00:00 +0000</pubDate><guid>https://www.renemoser.net/blog/2009/11/22/convert-avi-into-mp3-on-linux/</guid><description>I look this up every few months, so here it is in one place. ffmpeg takes the video apart and writes just the audio track to an MP3 file.
The whole file:
ffmpeg -i sample.avi -vn -c:a libmp3lame -b:a 256k sample.mp3 -vn drops the video stream, -c:a libmp3lame selects the MP3 encoder and -b:a 256k sets the audio bitrate. For a variable bitrate instead, replace -b:a 256k with -q:a 2, which gives roughly 190 kbit/s at a noticeably better size-to-quality ratio.</description></item><item><title>Postfix: Host not found, try again</title><link>https://www.renemoser.net/blog/2009/09/02/postfix-host-not-found-try-again/</link><pubDate>Wed, 02 Sep 2009 00:00:00 +0000</pubDate><guid>https://www.renemoser.net/blog/2009/09/02/postfix-host-not-found-try-again/</guid><description>If you configured Postfix to relay all outgoing mail through a smarthost and that host does not have an MX record — or does not have one anymore — the queue starts filling up and the log fills with deferrals:
Jul 14 12:45:39 myhostname postfix/smtp[2349]: 74FBF30501: to=&amp;lt;recipient@example.org&amp;gt; relay=none, delay=3944, status=deferred (Name service error for name=smtp.example.com type=MX: Host not found, try again) The Postfix FAQ is right about the cause, which still leaves the question of what to do about it.</description></item></channel></rss>