How To Install shade-inventory on Kali Linux

In this tutorial we learn how to install shade-inventory on Kali Linux. shade-inventory is Ansible inventory script for OpenStack clouds

Introduction

In this tutorial we learn how to install shade-inventory on Kali Linux.

What is shade-inventory

shade-inventory is:

Shade is a simple Python client library for operating OpenStack clouds. The key word here is simple. Clouds can do many things - but there are probably only about 10 of them that most people care about with any regularity. If you want to do complicated things, you should probably use the lower level client libraries - or even the REST API directly. However, if what you want is to be able to write an application that talks to clouds no matter what choices the deployer has made then shade is for you.

This package installs a script that uses shade to query OpenStack clouds and produce a JSON inventory that is suitable for use as an Ansible inventory plugin.

There are three methods to install shade-inventory 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 shade-inventory Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install shade-inventory using apt-get by running the following command:

sudo apt-get -y install shade-inventory

Install shade-inventory Using apt

Update apt database with apt using the following command.

sudo apt update

After updating apt database, We can install shade-inventory using apt by running the following command:

sudo apt -y install shade-inventory

Install shade-inventory 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 update

After updating apt database, We can install shade-inventory using aptitude by running the following command:

sudo aptitude -y install shade-inventory

How To Uninstall shade-inventory on Kali Linux

To uninstall only the shade-inventory package we can use the following command:

sudo apt-get remove shade-inventory

Uninstall shade-inventory And Its Dependencies

To uninstall shade-inventory and its dependencies that are no longer needed by Kali Linux, we can use the command below:

sudo apt-get -y autoremove shade-inventory

Remove shade-inventory Configurations and Data

To remove shade-inventory configuration and data from Kali Linux we can use the following command:

sudo apt-get -y purge shade-inventory

Remove shade-inventory configuration, data, and all of its dependencies

We can use the following command to remove shade-inventory configurations, data and all of its dependencies, we can use the following command:

sudo apt-get -y autoremove --purge shade-inventory

Dependencies

shade-inventory have the following dependencies:

References

Summary

In this tutorial we learn how to install shade-inventory package on Kali Linux using different package management tools: apt, apt-get and aptitude.