MariaDB: How-to check connections and threads connected

Sometimes we have to do some troubleshooting inside our database environment such as checking the current connections and threads for instance. The number of connections and threads are good indicators for capacity planning as well. In this post, I will show some commands to get…

Keep reading

Ansible: How-to install Azure Resource Manager inventory plugin (part 1)

IntroductionThis plugin allows you to work with dynamic inventory on Azure.Features Support VMSSConditional groups based on the name of the instances.Key group tags creationMultiples authentication methods wayInstallation Install azure cli https://docs.microsoft.com/en-us/cli/azure/install-azure-cli?view=azure-cli-latest Install azure inventory…

Keep reading

Molecule: Working with inventory

In this post, I will explain how to enable and manage inventory on the molecule. This is could be interesting when you have to parse some inventory within the role. 1) Edit the file: molecule/default/playbook.yml --- - name: Converge hosts: all roles:…

Keep reading

Molecule: Enabling roles dependencies

Molecule supports roles dependencies, however, we need to define the role-file parameter into the molecule.yml file to fetch the roles automatically. 1) Change the molecule.yml file according to the sample below. dependency: name: galaxy options: role-file: ${MOLECULE_SCENARIO_DIRECTORY}/requirements.yml2) Create a…

Keep reading

Molecule: How to define the vault password file.

Sometimes we have to deal with encrypted values, such as passwords and sensitive information inside the role, therefore for that case, we have to define the vault configuration for the molecule. The configuration for ansible vault key password file is defined within the file $HOME/…

Keep reading