How to Install and Configure Saltstack on an Ubuntu VPS
Edit Article

  • 1 Editor

What is SaltStack?

First let us know about Salt, Salt is formerly known as SaltStack. It is software for configuration management mostly used by the ITOps, CloudOps and DevOps. SaltStack provides complete orchestration and automation for any information centre operations at scale. It is mostly used for IT Operations by the data centres to manage and configure their servers.

SaltStack codes are officially released at the GitHub community under Apache 2.0 license. It can be used for openly for any kind of projects and freely available for download. SaltStack delivers a dynamic communication for infrastructure. It can be used for orchestration, remote execution, configuration management and much more.

Now hope you have understood the basics of Salt... Let’ s go further to get in depth knowledge

The main and core work of SaltStack is:

  • Use the smallest and fastest network payloads possible.
  • Use a safe and encrypted protocol.
  • Provide a trouble-free programming interface.

About Ubuntu:-

Ubuntu it is an Operating System built under the Debian base. The word Ubuntu it’s taken from the African language where it means ‘humanity to others’. It is open source OS made for the complete Linux operations on any computer or on any device. It’s complicated but not that hard to install. You can find how to do it by just googling it and you will find yourself installing Ubuntu in just few minutes.

Hope you have now got some idea about Ubuntu.

If you're headed up for the next thing maybe you will be familiar with this. There is a lot of to be covered in this topic. Keep your server enough updated to run the Ubuntu OS.

First, need to that you have all the files ready for the installation.

Then, make sure you are running the OS as administrator, or as default root user. This helps you to execute commands easily.

Now we’ll reconfigure what to download for the installation of Salt on your device –

  • Salt Master
  • Salt Minion

Firstly, you have to Google for the SaltStack files. Don’t forget to mention the Operating System for which you’re downloading it. Your Operating System’s version does have an important role for the files.

Let’s consider you have already downloaded it. Now we are heading up to the next step.

To Install And Use SALTStack :-

You have to add repository for this. The latest packages for Ubuntu are published in the SaltStack PPA. Now you have to add the repository and import the key and for this you have to execute these commands:

Ubuntu server
sudo add-apt-repository ppa:saltstack/salt

Add-apt-repository: command not found?

The add-apt-repository command is not always present on Ubuntu systems. This can be preset by installing python-software-properties:

sudo apt-get install python-software-properties

The following command may also be required to do this:

sudo apt-get installs software-properties-common

You have to manually add the repository and import the PPA key with the following commands:

Ubuntu server2
echo deb `lsb_release -sc` main | sudo tee /etc/apt/sources.list.d/saltstack.list
wget -q –O- "" | sudo apt-key add -

Then you have to update the apt package database and for this you have to execute:

Ubuntu server3
Sudo apt-get update

I consider you’ve updated the apt package database. After that you have to insall Salt Master and Salt Minion:

Ubuntu server4
Sudo apt-get install salt-master
Sudo apt-get install salt-minion

Now You have to configure the Salt Master and Salt Minion. For this you have to setup the Salt Minion to find the Salt Master files. This is done so that they interact with each other while executing commands :

vi /etc/salt/minion

You have to set your host and config editor to the Salt Minion’s config file We’re doing it as the localhost so we have to execute the following commands:

master: localhost

After that save changes and restart the Salt Minion service by the following commands:

Service salt-minion restart

Key Specifications:-

SaltStack uses AES (Advanced Encryption Standard) for all the interactions between the Salt Minion and Master.

Check the Salt Minion keys you’ve made,

You have to put these commands as master. Hence it is essential to make sure that it is running as we need and use these commands :

Ubuntu server5
salt-key –L

It will show the unaccepted keys and the accepted ones. Its key must be accepted on the Master:

Accepted Keys: Unaccepted Keys: ithekk Rejected Keys:

The Key will show up under the unaccepted ones. The key we got here was our computers name. You will have yours then use your computer’s name and enter these commands:

Salt-key -a 'ithekk'

Now you will find yourself heading on to this on your screen it will show like this:

The following keys are going to be accepted:

Unaccepted Keys: Ithekk Proceed? [n/Y] y Key for minion ithekk accepted.

Cool, now you have your working Salt Master and Salt Minion running on your Operating System’s server.

From now on you can check all the commands that it can run.


Now here you have seen how you can install and configure SaltStack on Ubuntu Server. I assume that you’ve got all the things you wanted to learn about. I have tried to explain all the necessary things you need. From the procedure of the installation, to its execution all have been covered. By now you will have a certain amount of knowledge about executing commands in Ubuntu and the way SaltStack works. With the help of this you will find the installation of Salt is easy enough to do. Maybe this will become helpful in future. So at last you ended up with Knowing about Ubuntu 12.04 and getting hands on usage. You have also got a complete guide to install SaltStacks on your Debian-based running Server. And there are ways you can find yourself get going on to this no matter how hard you think it is. If you got this then the article achieved its all way here. If you want more updates on interesting subjects like this stay checking us on the web.

Article Tools

Did this article help you?


an Author!

Write an Article