How To Install hiera-eyaml on Kali Linux
Introduction
In this tutorial we learn how to install hiera-eyaml on Kali Linux.
What is hiera-eyaml
hiera-eyaml is:
A backend for Hiera that provides per-value encryption of sensitive data within yaml files to be used by Puppet.
Only the values are encrypted, allowing files to be swiftly reviewed without decryption.
The value of each key is encrypted individually, which means that “git diff” is meaningful.
Includes a command line tool for encrypting, decrypting, editing and rotating keys. This makes it almost as easy as using clear text files.
Basic asymmetric encryption (PKCS#7) is used by default. This does not require any native libraries to be compiled, and it allows users without the private key to encrypt values that the puppet master can decrypt
hiera-eyaml includes a pluggable encryption framework (e.g. GPG encryption (hiera-eyaml-gpg) can be used if you have the need for multiple keys and easier key rotation)
There are three methods to install hiera-eyaml on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install hiera-eyaml Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install hiera-eyaml using apt-get by running the following command:
sudo apt-get -y install hiera-eyamlInstall hiera-eyaml Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install hiera-eyaml using apt by running the following command:
sudo apt -y install hiera-eyamlInstall hiera-eyaml Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install hiera-eyaml using aptitude by running the following command:
sudo aptitude -y install hiera-eyamlHow To Uninstall hiera-eyaml on Kali Linux
To uninstall only the hiera-eyaml package we can use the following command:
sudo apt-get remove hiera-eyamlUninstall hiera-eyaml And Its Dependencies
To uninstall hiera-eyaml and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove hiera-eyamlRemove hiera-eyaml Configurations and Data
To remove hiera-eyaml configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge hiera-eyamlRemove hiera-eyaml configuration, data, and all of its dependencies
We can use the following command to remove hiera-eyaml configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge hiera-eyamlDependencies
hiera-eyaml have the following dependencies:
References
Summary
In this tutorial we learn how to install hiera-eyaml package on Kali Linux using different package management tools: apt, apt-get and aptitude.