How to generate new vault keys

Generate new vault keys. ...

January 2, 2023 · milosz · Vault

How to enable HashiCorp Vault audit logs

Enable HashiCorp Vault audit logs. ...

How to generate new vault root token

Generate new vault root token. ...

December 26, 2022 · milosz · Vault · JSON

How to use HAProxy to redirect connection to active Vault cluster

Use HAProxy to redirect connection to active HashiCorp Vault cluster. ...

How to create directory with defined ownership and permissions

Create directory with defined ownership and permissions using a simple single-step command. ...

How to extract and parse LXD instance information

Extract and parse LXD instance information. ...

December 5, 2022 · milosz · LXD · JSON

How to reload consul configuration

Reload consul configuration. ...

November 28, 2022 · milosz · Consul

How to change encryption key used for gossip messages

Change encryption key used for gossip messages. ...

November 22, 2022 · milosz · Consul

How to inspect consul metrics

Inspect current consul metrics. ...

November 15, 2022 · milosz · Consul · JSON

How to inspect remote GnuPG signing key

Inspect remote GnuPG signing key. ...

November 14, 2022 · milosz

How to enumerate vault root tokens

Enumerate vault root tokens. ...

November 3, 2022 · milosz · Vault · JSON

How to ensure that HAProxy keep up with Docker name resolution

Ensure that HAProxy keep up with Docker name resolution. ...

How to install Vault agent

Install and configure HashiCorp Vault agent. ...

October 17, 2022 · milosz · Vault

How to inspect consul configuration

Inspect consul configuration using command-line utilities. ...

October 15, 2022 · milosz · Consul · JSON

How to inspect vault configuration

Inspect vault configuration to troubleshoot potential problems. ...

October 1, 2022 · milosz · Vault

How to lookup specific element in Ansible dictionary or list of these

Lookup specific element in Ansible dictionary or list of these. ...

September 26, 2022 · milosz · Ansible

How to use go-sockaddr template to define IP address

Use go-sockaddr template to define IP address inside Consul configuration. ...

August 31, 2022 · milosz · Consul

How to create watchdog for systemd service

Create a software watchdog for systemd service. ...

How to prevent updating VirtualBox Guest Additions on the guest system

Prevent updating VirtualBox Guest Additions on the guest system when using Vagrant. ...

August 10, 2022 · milosz · Vagrant

How to automatically update docker containers whenever new image is released

Automatically update docker containers whenever new image is released using watchtower. ...

August 9, 2022 · milosz · Docker

How to install guest tools inside XCP-ng VM

Install guest tools inside XCP-ng VM for better performance and various features. ...

July 27, 2022 · milosz · XCP-ng

How to fix pkeys are immutable error inside Vagrant on Ubuntu Jammy Jellyfish

Fix pkeys are immutable on OpenSSL error inside Vagrant on Ubuntu Jammy Jellyfish. ...

How to use multi-stage build to compile an application

Use Docker or Pod Manager multi-stage build to compile Nginx from source code with additional headers-more-nginx-module module using Debian Bullseye image. ...

How to inspect ZooKeeper logs and snapshots

Inspect ZooKeeper logs and snapshots. ...

How to debug ZooKeeper SSL connection issues

Debug ZooKeeper SSL connection issues. ...

How to use specific Vagrant box version

Use specific Vagrant box version instead of the latest one. ...

March 11, 2022 · milosz · Vagrant

How to remove old ZooKeeper snapshots and transaction logs

How to remove old ZooKeeper snapshots and transaction logs. ...

How to secure the ZooKeeper client communication

Secure the ZooKeeper client communication. ...

How to secure the ZooKeeper quorum communication

Secure the ZooKeeper quorum communication using SSL certificates. ...

How to determine and restore preferred leader for specific Kafka topic

Determine and restore preferred leader for specific Kafka topic. ...

February 23, 2022 · milosz · Kafka

How to inspect Kafka broker configuration

Inspect Kafka broker configuration using command-line utilities. ...

February 21, 2022 · milosz · Kafka

How to determine Kafka version using command-line utilities

Determine Kafka version using command-line utilities. ...

February 16, 2022 · milosz · Kafka

How to use PKCS #12 as ZooKeeper truststore

PKCS #12 format works fine when used to provide ZooKeeper keystore, but additional steps are needed to use it for a dedicated truststore. ...

How to execute multiple Ansible tasks once per group

Execute multiple Ansible tasks once per group and use a dedicated variable to store custom data. ...

January 28, 2022 · milosz · Ansible

How to manage Kafka topics using command-line

Manage Kafka topics using command-line utilities. ...

January 26, 2022 · milosz · Kafka

How to distribute data evenly across all disks on a Hadoop datanode

Distribute data evenly across all disks on a Hadoop datanode. ...

January 24, 2022 · milosz · Hadoop · JSON

How to display ZooKeeper state for each server

Display ZooKeeper state for each server using the four-letter commands. ...

How to update reconfigurable properties on Hadoop node

Update reconfigurable properties on Hadoop node without restart. ...

January 17, 2022 · milosz · Hadoop

How to wait until service is running inside ansible playbook

Wait until service is stopped or running inside ansible playbook. ...

January 12, 2022 · milosz · Ansible

How to put Hadoop datanodes in maintenance state

Use JSON-based configuration format for Hadoop datanodes to create a whitelist and control put these in normal, decommissioned or maintenance state. ...

January 10, 2022 · milosz · Hadoop

How to reassign Kafka topic partitions

Reassign Kafka topic partitions. ...

January 5, 2022 · milosz · Kafka · JSON

How to rebalance data across HDFS cluster

Rebalance data across HDFS cluster. ...

December 29, 2021 · milosz · Hadoop

How to alter memory allocation pool for Kafka and ZooKeeper

Alter memory allocation pool for Kafka and ZooKeeper. ...

How to define cluster groups in Ansible inventory

Define cluster groups in Ansible inventory. ...

December 24, 2021 · milosz · Ansible

How to disable GC Logging for Kafka and bundled ZooKeeper

Disable GC Logging for Kafka and bundled ZooKeeper. ...

How to query Docker socket using curl

Query Docker socket using curl. ...

December 13, 2021 · milosz · Docker · JSON

How to configure Grafana application within GitLab instance to accept self-signed certificate

Configure Grafana application within GitLab instance to accept self-signed certificate. ...

How to install GitLab runner on Raspberry Pi

Install GitLab runner on Raspberry Pi. ...

December 6, 2021 · milosz · GitLab

How to delete Kafka messages

Delete every Kafka message or messages up to the specific offset. ...

December 3, 2021 · milosz · Kafka

How to extract Kafka topic parameters using command-line utilities

Use command-line utilities to extract Kafka topic parameters. ...

December 1, 2021 · milosz · Kafka

How to debug ZooKeeper connection inside a Python script

Debug ZooKeeper connection inside a Python script. ...

How to install GitLab on Raspberry Pi

Install GitLab on Raspberry Pi. ...

How to install LXD on Raspberry Pi

Install LXD a next generation system container and virtual machine manager on Raspberry Pi using DietPi a highly optimized minimal Debian OS. ...

How to fix broken Prometheus service in GitLab arm64 14.4.2

Fix broken Prometheus service in GitLab arm64 14.4.2. ...

How to reset offset of Kafka consumer group

Reset offset of Kafka consumer group. ...

November 15, 2021 · milosz · Kafka

How to perform basic console operations on Kafka cluster

Perform basic console operations on Kafka cluster. ...

November 10, 2021 · milosz · Kafka

How to display active Kafka brokers

Display active Kafka brokers using command-line utilities. ...

November 8, 2021 · milosz · Kafka

How to inspect and improve docker image using dive utility

Inspect and improve docker image using dive utility for exploring each layer in a docker image. ...

How to install and configure a Kafka cluster without ZooKeeper

Install and configure a Kafka cluster without ZooKeeper to play with it. ...

How to install and configure a Kafka cluster with ZooKeeper

Install and configure a Kafka cluster with ZooKeeper to play with it. ...

October 25, 2021 · milosz · Kafka

How to generate Kafka cluster ID

Generate Kafka cluster ID for Kafka Raft metadata mode. ...

How to use ZooKeeper to elect the leader with a Python script

Use ZooKeeper to elect the leader and share data with a Python script. ...

How to use ZooKeeper to lock resources with a Python script

Use ZooKeeper to lock resources with a Python script. ...

How to enable ZooKeeper the four-letter words

Enable the four-letter words. ...

How to provide additional JVM options to ZooKeeper instance

Provide additional JVM options to the ZooKeeper instance. ...

How to display ZooKeeper startup options

Display ZooKeeper startup options. ...

How to execute ZooKeeper commands using command-line interface

Execute ZooKeeper commands using command-line interface. ...

How to enable ZooKeeper audit logging

Enable ZooKeeper audit logging. ...

How to configure ZooKeeper cluster

Install and configure a basic ZooKeeper cluster to play with it. ...

How to install standalone ZooKeeper server

Install standalone ZooKeeper server to play with it. ...

September 29, 2021 · milosz · ZooKeeper

How to squash Docker image

Squash Docker image to remove unnecessary layers in case you do not have a need to keep them. ...

September 17, 2021 · milosz · Docker

How to enable Control Group v2

Enable Control Group v2 for podman to display container’s resource usage statistics. ...

How to build DokuWiki container with podman

Build DokuWiki container with podman. ...

How to use docker-compose to setup a WordPress instance

Use docker-compose to instantly setup a development WordPress instance. ...

How to deal with missing snapshot after ZooKeeper upgrade

Deal with missing snapshot after ZooKeeper upgrade from version 3.4 to 3.5 or later. ...

How to install Cluster Manager for Apache Kafka

Install Cluster Manager for Apache Kafka, previously known as Kafka Manager on Debian Bullseye. ...

How to deal with high user id in a dockerfile

Solve the issue related to the high user id in a dockerfile. ...

July 2, 2021 · milosz · Docker

How to create Ansible filters

Create Ansible filters to work with Apache Flume configuration. ...

How to dynamically route HTTPS traffic to LXD instances

Dynamically route HTTPS traffic to LXD instances on a development server. ...

May 24, 2021 · milosz

How to define multiple disks inside Vagrant using VirtualBox provider

Define multiple disks inside Vagrant using VirtualBox provider. It is not immediately obvious how to achieve it, but everything you need is there. ...

May 10, 2021 · milosz · Vagrant

How to display custom message after vagrant machine is started

Display custom message after the vagrant machine is started. ...

May 7, 2021 · milosz · Vagrant

How to execute specific vagrant provisioner every time the virtual machine is started

Use vagrant provisioner to update SSH authorized_keys every time the virtual machine is started. ...

April 30, 2021 · milosz · Vagrant

How to disable concurrent builds in Jenkins

Disable concurrent builds in Jenkins declarative pipeline. ...

March 15, 2021 · milosz · Jenkins

How to dynamically define Ansible SSH user

Create an additional Ansible role to dynamically set Ansible SSH user depending on the defined conditionals. ...

March 10, 2021 · milosz · Ansible

How to display available versions of Python package

Use a Python package installer to display available versions of the specific Python package. ...

March 5, 2021 · milosz · Python3

How to install Nexus Repository Manager 3

Install Nexus Repository Manager (NXRM) 3. ...

How to check the HashiCorp software version

Use Checkpoint service to check the HashiCorp software version. ...

February 12, 2021 · milosz · JSON

How to trace terraform execution

Use specific environment variables to enable and store detailed terraform execution logs. ...

How to combine group variables with specific names

I have already described how to combine group variables by parsing group configuration files, so today I will describe how to combine group variables with specific names. ...

February 1, 2021 · milosz · Ansible

How to define build name and description in Jenkins

Define build name and description in Jenkins pipeline. ...

January 29, 2021 · milosz · Jenkins

How to display ansible configuration settings that have changed from the default

Display Ansible configuration settings that have changed from the default. ...

January 18, 2021 · milosz · Ansible

How to display Java settings

Use a dedicated option to display Java settings. ...

January 15, 2021 · milosz · Java

How to force specific language in Jenkins

Ignore the browser’s language preference and set the specific language in Jenkins. ...

January 13, 2021 · milosz · Jenkins

How to access ansible facts regardless of the target limits

Access required ansible facts regardless of the target limits on a particular run. ...

January 4, 2021 · milosz · Ansible

How to deal with non-obvious lack of free space when using lxd snap

Inspect and solve non-obvious lack of free space when using lxd snap. ...

January 1, 2021 · milosz · LXD

How to configure the Vagrant virtual machine to use a specific proxy

Configure the Vagrant virtual machine to use a specific proxy using the vagrant-proxyconf plugin. ...

How to alter task history retention inside Docker Swarm cluster

Alter task history retention inside the Docker Swarm cluster to ensure that there are no stopped containers. ...

How to execute terraform in an offline mode

Execute the old and new Terraform using the selected provider in an offline mode. ...

How to create MongoDB cluster using Docker

Create a MongoDB cluster using Docker. ...

How to create a MongoDB container with a designated user

Create a MongoDB container with a designated user. ...

How to redeploy master certificate in OpenShift 3.11

Inspect and redeploy the master certificate in OpenShift 3.11. ...

How to replace router certificate in OpenShift 3.11

Replacing the router certificate in OpenShift 3.11 is easier than you think. ...

How to install OpenJDK 8 on Debian

Use AdoptOpenJDK/Eclipse Adoptium to install OpenJDK 8 (LTS)/OpenJDK 11 (LTS) or OpenJDK 15 (Latest) using Eclipse OpenJ9 or HotSpot Java virtual machine. ...

November 9, 2020 · milosz · Debian · Java

How to use specific Vagrantfile

Define the environment variable to use specific Vagrantfile. ...

November 6, 2020 · milosz · Vagrant

How to rebalance Docker service

Docker services are not automatically rebalanced after events that affect Docker Swarm nodes, so you have to initiate this process yourself. ...

How to create Elasticsearch cluster using docker

Create an Elasticsearch cluster using docker to learn how it behaves during specific operations. ...

How to deploy Portainer stack inside Docker Swarm cluster

Deploy Portainer stack inside the Docker Swarm cluster. ...

How to install Kubernetes on LXD

Install Kubernetes on LXD. Essential information to just get you started. ...

How to start using Docker Swarm

Start using Docker Swarm to easily manage your containers. ...

How to reduce the size of the Docker container log file

Update the docker-compose configuration file to reduce the container log file size before you run out of disk space. ...

How to deal with missing AppArmor profiles for microk8s on LXD

Today I will describe how to deal with missing AppArmor profiles for microk8s on LXD. ...

How to instruct Ansible to use specific version of Python

Instruct Ansible to use a specific version of Python interpreter on the remote host. ...

How to parse INI configuration file using Bash

Parse INI configuration file using Bash shell-script. ...

How to detect chroot environment

Sometimes it makes me wonder whether I am inside a chroot environment or not, so let’s check it out. ...

How to display LeaseWeb data traffic using API v2

LeaseWeb released a new version of API that will deprecate the old one, so it is the perfect time to update the Python script using v1 api and switch to API v2 before May 31. ...

How to setup private Docker registry

Setup a simple Docker registry to use it privately or share images which a team of developers. ...

How to create base Docker image

Create a base Docker image using debootstrap utility. ...

How to choose IP addresses and domain names for documentation

It is a good practice to not use valid domain names or already assigned IP addresses while writing documentation. I will provide you with RFC documents that are needed to reduce the likelihood of conflict and confusion. ...

How to upgrade lxd guests

It is time to mention about simple sequential or simultaneous upgrade process on lxd guests. It is adapted to Debian-like operating systems using apt as I am using these daily. ...

How to check connection to the RabbitMQ message broker

Use Python script to verify that client can connect to the RabbitMQ message broker. ...

How to post message from command-line into Slack

Use a defined webhook to post a message from the command-line as a parameter, standard input, or a file into Slack/Mattermost. Take advantage of colors, icons, and markdown to enhance your message. ...

How to setup apt-cacher-ng Vagrant box

Vagrant is an awesome piece of software, but constantly downloading system packages can be very time-consuming. The simplest solution is to set up an apt caching proxy as a Vagrant box. ...

How to setup DokuWiki Vagrant box

Today, I will publish Vagrant configuration to set up DokuWiki instance. It is just a handy reference, as described in the earlier blog post. ...

How to extract the cover image from an e-book

I have successfully used Google Drive and Insync to organize all of the e-books that I have acquired during the last years. Currently plan to upload them to a personal DokuWiki instance since I use it more every day. Before I can start, I need to extract cover images to ensure that I will get a decent outcome. ...

How to remotely check PostgreSQL version

Today I will shortly describe how you can remotely check the PostgreSQL version and use it inside shell scripts. This ability comes in handy at times, as it can be used to perform different tasks depending on the returned database version. ...

How to non interactively provide password for the PostgreSQL interactive terminal

There are two ways to non interactively provide a password for the psql command (PostgreSQL interactive terminal). Each method allows you to quickly write shell scripts using terminal-based PostgreSQL utilities as you can provide user credentials from the password file or environment variables. ...

How to control VirtualBox machine using shell

At the beginning of the last year, I wrote about VirtualBox image conversion. Today, I will continue this topic further and describe how to control the virtual machine using the command line. ...

How to automate mouse and keyboard

Recently I was wondering if it would be possible to automate mouse and keyboard actions. The answer is obviously yes as you can use xautomation and xdotool tools. I will describe them in a couple of simple examples. ...

How to remove comments from a shell script

The easiest way to remove comments from a shell script is to use sed (stream editor for filtering and transforming text) command. ...

How to generate QR Codes

Quick Response Codes are appearing everywhere. You can see them in museums, near the tourist attractions or all over the web. There is no doubt that QR Codes are useful as they can contain any information within reasonable limits. ...

How to use physical hard disk in VirtualBox

To use a physical hard disk in VirtualBox you need to create an image that will represent it. ...