Playbook: fetch container logs from journald
Related cards:
HowTo apply Test Driven Development to Container Images
Apply Test Driven Development(TDD) to the process of building container images by defining test before writing code and automate the testing process. Iterate through the TDD cycle while developing and running the tests later in continuous integrat...
Parsing multiline container logs with fluent-bit
If you have for e.g. a Java application which outputs multiline stack traces inside a container running in kubernetes you might wonder how you can concat alle these lines to a single log message in fluent-bit
. If fluent-bit is receiving the log ...
How to Protect container images with production tag from ECR lifecycle rules
If you want to automatically delete old container images from your Elastic Container Registry, the solution is a quite simple ECR Lifecycle Rule that deletes images e.g. 7 days after they have been pushed to the registry.
If you however want to _...
Prevent systemd from dropping IP-Addresses configured from other processes
Systemd's networkd will drop IP-Addresses configured by other processes like Keepalived's VRRP, when it is restarted. This may happens on updates.
To prevent this following settings are required in /run/systemd/network/10-netplan-eth0.network
...
HowTo: let puppet agent run from different branch
This is not encouraged because this change is easily forgotten. We recommend using this only if you know what you are doing.
Should you be in need to run puppet
from a branch (called environment in puppet land) other than production
for a...
Bolt: Run commands from a file
There's a simple way in bolt to run commands from a file without caring about BASH escaping:
# /home/user/foo.sh
echo "$(hostname -f): $(uptime)...
How to remove cloud init from ubuntu
If you're trying to start a cloud-init based Ubuntu VM with KVM you will suffer long boot times and confusing output on the terminal. If you want to get rid of it you need to remove cloud-init.
- wait until the VM boots
- login
- `echo 'datas...
Create gitlab container expiry config in every repo in a group
The link contains a simple shell script to push a cleanup policy for gitlab repositories in a group.
Please mind that this will ...
Replacing exported resources with puppetdb queries
Instead of using Puppet exported resources you can use the puppetdb_query feature.
This can result...