Quantcast
Channel: sleeplessbeastie's notes
Browsing all 770 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

How to force specific language in Jenkins

Ignore the browser’s language preference and set the specific language in Jenkins. At first, install the locale plugin. Open Manage Jenkins, then Configure System to set the default language.

View Article


How to display Java settings

Use a dedicated option to display Java settings. Display settings Display the system configuration. $ java -XshowSettings:system -version Operating System Metrics: Provider: cgroupv1 Effective CPU...

View Article


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

Display Ansible configuration settings that have changed from the default. Display Ansible configuration file. $ ansible-config view -vv ansible-config 2.9.6 config file =...

View Article

How to restart service on every configuration change

Monitor file system events to restart service on every configuration change. I will use varnish service and wait for changes to the /etc/varnish/default.vcl configuration file before initiating restart...

View Article

How to combine group variables by parsing group configuration files

Group variables are overwritten, not merged, this is an expected behaviour, but can by circumvented by parsing group configuration files. Ansible directory tree used to describe this solution. $ tree...

View Article


How to create site-to-site connection using IPsec

Use the native IPsec stack to connect multiple networks over the internet. I will connect three different networks over the internet using IPsec tunnels. HostnameIP...

View Article

Image may be NSFW.
Clik here to view.

How to define build name and description in Jenkins

Define build name and description in Jenkins pipeline. Use currentBuild.displayName and currentBuild.description to define build name and description. pipeline { agent any options {...

View Article

How to combine group variables with specific names

I have alreade described how to combine group variables by parsing group configuration files, so today I will describe how to combine group variables with specific names. Ansible directory tree used to...

View Article


How to define JAVA_HOME

Determine and set JAVA_HOME to execute Java command-line applications. Determine JAVA_HOME using java binary location. $ readlink -f $(which java) | sed s:bin/java::...

View Article


How to trace terraform execution

Use specific environment variables to enable and store detailed terraform execution logs. Define TF_LOG environment variable to TRACE terraform execution. Use DEBUG, INFO, WARN, or ERROR values to...

View Article

How to display strace summary

I have already described how to strace PHP-FPM processes, but you can also display a strace summary to get detailed information about count time, calls, and errors for each syscall. Prerequisites...

View Article

How to lock specified packages from being updated

Use versionlock plugin to protect packages from being updated on the CentOS operating system. Install Yum versionlock plugin. $ sudo yum install yum-plugin-versionlock List locked packages. $ sudo yum...

View Article

How to check the HashiCorp software version

Use Checkpoint service to check the HashiCorp software version. Current version check Check the current Vagrant version. $ curl --silent "https://checkpoint-api.hashicorp.com/v1/check/vagrant" | jq...

View Article


How to use templates inside shell scripts

Use templates inside shell scripts by substituting environment variables. I will use envsubst utility, which is a part of the gettext-base package. Create a template file Create a template using...

View Article

How do display physical volumes associated with the volume group

Display physical volumes associated with the volume group. Display physical volumes. $ pvdisplay --columns --noheadings --options pv_name | tr -d ' ' /dev/sdb /dev/sdc /dev/sdd /dev/sde /dev/sdf...

View Article


Image may be NSFW.
Clik here to view.

How to install Nexus Repository Manager 3

Install Nexus Repository Manager (NXRM) 3. Prerequisites Install required packages. $ sudo apt-get install curl gnupg apt-transport-https Install Java Import AdoptOpenJDK GPG public key using curl. $...

View Article

How to create the simplest possible nftables firewall

Create the simplest possible firewall using nftables framework with relaxed rules that will allow all outgoing traffic, incoming ICMP echo requests, and ssh connections. Default configuration Default...

View Article


How to fix device excluded by a filter

Fix “device excluded by a filter” LVM error. Sometimes you can encounter “device excluded by a filter” LVM error. $ sudo pvcreate /dev/sdb Device /dev/sdb excluded by a filter. This error is caused by...

View Article

How to edit file in-place

Use sponge utility to read standard input and safely write it out to the same file. Prerequisites Install moreutils package to use sponge utility. $ sudo apt install moreutils Case #1 Inspect fstab...

View Article

How to manage systemd services remotely

Manage systemd services remotely over SSH protocol. Create user for systemd manager Create systemd-manager user on remote machine. $ sudo useradd --create-home systemd-manager Prepare the directory and...

View Article
Browsing all 770 articles
Browse latest View live