Ansible role: package_update v2.0.2
Keeping your software up-to-date is an important task in System Administration. Not only for security reasons but also to roll out bug fixes to your systems.
As always we should try to automate this process as much as possible.
Ansible has a package module to install packages in a generic way. It supports most Un*x platforms (GNU/Linux, BSD, …). But it doesn’t allow you to update all packages.
For this reason, I created an Ansible role: package update.
Package update enables you to update all packages on most Linux distributions and the BSD operating systems. It can also update the running jails on FreeBSD.
Version 2.0.2 is available at
- Github: https://github.com/stafwag/ansible-role-package_update.
- Ansible galaxy: https://galaxy.ansible.com/stafwag/package_update
- Always update the apt cache on Debian based distributions.
Have fun!Read more...
Use unbound as an DNS-over-TLS resolver and authoritative dns server v2.0.0
In previous blog posts, I described howto setup stubby as a DNS-over-TLS resolver. I used stubby on my laptop(s) and unbound on my internal network.
I migrated to unbound last year and created a docker container for it. Unbound is a popular DNS resolver, it’s less known that you can also use it as an authoritative DNS server.
This work was based on Debian Buster, I migrated the container to Debian Bullseye reorganize it a bit to make it easier to store the zones configuration outside the container like a configmap or persistent volume on Kubernetes.
Version 2.0.0 is available at https://github.com/stafwag/docker-stafwag-unbound.
- Updated the base image to debian:bullseye.
- Updated create_zone_config.sh to be able to run outside the container.
- Removed the zones.conf generation from the entrypoint
- Start the container as the unbound user
- Updated to logging.conf
- Set the pidfile /tmp/unbound.pid
- Added remote-control.conf
- Updated the documentation
Ansible role: virt_install_vm 1.0.0 released
I wrote a few articles:
- Howto use centos cloud images with cloud-init on KVM/libvirtd
- Howto use cloud images on the Raspberry PI 4
on my blog on how to use cloud images with cloud-init on a “non-cloud” environment.
I finally took the time to create an Ansible role for it. You’ll find the READE.md below.
Virt_install_vm 1.0.0 is available at: https://github.com/stafwag/ansible-role-virt_install_vm
Have fun!Read more...
Manjaro on the RPI4 with full disk encryption and remote unlock
Last year I got a raspberry pi 4 to play with and installed Manjaro on it.
The main reason I went with Manjaro was that the ArchLinux Arm image/tgz for the Raspberry Pi 4 was still 32 bits, or you needed to create-your-own kernel.
But started to like Manjaro Linux, it provided a stable base with regular updates. This year I upgraded my setup with 2 additional Raspberry Pi 4 to provide clustering for my k3s (Kubernetes) setup. I used virtual machines on the Raspberry Pi to host the k3s nodes. Also because want to the Pi for other tasks and virtual machines makes it easier to split the resources. It’s also an “abstraction layer” if you want to combine the cluster with other ARM64 systems in the future.
I always (try to) to full disk encryption, when you have multiple nodes it’s important to be able to unlock the encryption remotely.Read more...