2024 Sep 06

Today, I’m adding Elixir and Erlang to my attention context. I’ll start exploring this ecosystem more closely. Several characteristics of Elixir and Erlang are particularly appealing for my projects. Other than that busy by working on PKI and EJBCA.

2024 Sep 05 · Dzintars

How to Deploy Rootless HAProxy as Podman Quadlet

This post is raw. No grammar is checked. When doing local development or just tinkering with this or that, quite often you want to expose something to the Internet. When it’s just single “something”, then you can just forward your port 80 from router, to your machine’s “something” port. But this falls appart if you have two “something” you want to expose to the Internet. You can’t forward single 80 port from your router to two different applications running on your machine....

2024 Sep 03 · Dzintars

How to Integrate Flyway Into Linux Desktop Environment

Today I decided to ditch Flyway Desktop execution from CLI and integrate into my Sway + Wofi desktop environment. Basically, there is what you need: Get an Flyway icon and paste it into flyway.svg file Copy that SVG file into $HOME/.local/share/icons/hicolor/scalable/apps/flyway.svg Change the color for the icon by adding fill="#CC0200" to the path Create an $HOME/.local/share/applications/flyway.desktop file with the content like this: 1 2 3 4 5 6 7 8 9 10 11 12 [Desktop Entry] Version=1....

2024 Aug 05 · Dzintars

2024 Jul 28

Establishing PHP dev and pod environments Still continuing my 2024-jul-13 journey. Because there are no any Dev/Prod enviroment whatsoever… I need to create one. At the same time I have no experience with PHP runtimes and need to learn a bit about it. At this day, I managed to create working containerized Nginx, PHP-FPM and MariaDB workload to run PHP applications. I used Ansible roles/playbooks and Podman Quadlets (Systemd units) for the container management as they don’t need Kubernetes for sure....

2024 Jul 28 · Dzintars

2024 Jul 13

Migrating old databases Currently mostly busy with modernizing 15 years old infrastructure of some customer. Old and huge MySQL databses. No foreign keys. No timestamps. It’s all pretty convoluted. Many VM’s running directly on KVM without libvirt abstraction. Failing hard drives. Old PHP. And the overaly of many “big brain” sysadmins. But at least, I gained full access to the most of the resources, restored passwords, established secure remote access, etc....

2024 Jul 13 · Dzintars

How to Store Ansible Vault Password

There are several ways to pass the Ansible Vault password. classic CLI prompt which requires manual intervention password file which should be stored somewhere accessible to the Ansible environment variable Today I will tell about my latest approach. I am using tool called Direnv which loads and unloads different environment variables when you enter the directory. Direnv uses .envrc files to read the variables from. Typically, this file should be in your ....

2024 Mar 27 · Dzintars

2024 Mar 25

Looks like my little starter blog is working. At least there is some activity around it. After all the things I went back to rewriting my infra components to Podman Quadlets 1 by utilizing Ansible. I think, I figured out general pattern. Yet, I’m not quite happy how do I handle network creation. I need to encapsulate it into single generic role instead writing the same network role in every collection....

2024 Mar 25 · Dzintars

NixOS vs Ansible

My opinion on this is still not stable or true and I might change my mind later when I will really try NixOS. I see the constant hype around the NixOS and one of the main selling points is its reproducibility. Under the Ansible, you configure only whats in your playbooks. And it’s easy to mess around the system bypassing the Ansible. In NixOS that’s not the case. If you make any add-hock changes on NixOS and then run nixos-rebuild all your crafted changes will be gone because they are not in your NixOS config....

2024 Feb 28 · Dzintars

My Note Taking System

WIP. This post is not finished. Why For a long time I didn’t care about the note taking too much, thou, I was writing long MS Word documents with the ideas of the project, user stories and other things. It all changed when I switched to the Linux. Because Linux was pretty much new to me, I had a lot to learn and remember. So, gradually I started to write my little runbooks to document the steps I took to get to the point B....

2024 Feb 24 · Dzintars

How to Integrate Google Analytics Into Hugo PaperMod Theme

As I’m setting up my shiny new blog, I stuck at Google Analytics integration. It looks like official PaperMod lacks some documentation on this topic. So… there is what worked for me. Don’t use analytics.google.SiteVerificationTag directive. Use only googleAnalytics: G-xxxxxxx directive. Create new file in layouts/_internal/google_analytics.html and paste the entire code snippet you got from GA property setup page. Basically that’s it. This partial will be automatically included in the every Hugo page....

2024 Feb 22 · Dzintars