Skip to main content

SALT

This tutorial will go over how to set up Heist to manage ephemeral Salt Minions. The whole point of Heist is to make deployment and management of Salt easy!

Before you start please be advised that a more detailed quickstart is available in the docs for heist.

Using Heist is very easy, Start by downloading Heist. Just install via pip:

pip install heist-salt

Setting up a Salt Master

Don’t worry, this is a snap! Once Heist is installed you will need a Salt Master to connect to. If you have an existing Salt Master running you can skip this section, just run heist on your Salt Master.

Download the all-in-one Salt binary for Linux or Mac (Windows coming soon!):

For Linux:

wget https://repo.saltproject.io/salt-bin/linux/salt

For Mac:

wget https://repo.saltproject.io/salt-bin/osx/salt

Now you can just run it!

chmod +x salt
sudo ./salt master

Now you have a running Salt Master to control your minions!

Making Your Roster

A Roster is a file used by Heist to map login information to the systems in your environment. This file can be very simple and just needs to tell Heist where your systems are and how to log into them via ssh. Open a file called roster.cfg and add the data needed to connect to a remote system via ssh:

192.168.4.4:
  username: fred
  password: freds_password

The roster files typically all live inside of a roster directory. But to get started will execute a single roster file with heist:

heist salt.minion -R roster.cfg

Assuming your roster is correct, heist will now connect to the remote system, deploy a salt minion, and connect it to your running master! Now you can use the same binary that you started the master with to accept your new minion’s keys:

./salt key -A

Then give your minion a few seconds to authenticate and then run your first salt command on the newly set up minion:

./salt \* test.version

That’s it! Now that the minion is up you can run salt commands on it at breakneck speed, the full power of Salt is at your fingertips!!

Metadata

Release files for heist-salt 1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for heist-salt 1
File Size Uploaded
heist-salt-1.tar.gz 7.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for heist-salt 1
File Interpreter ABI Platform
heist_salt-1-py3-none-any.whl Python 3 none any Details

Total release size: 9.5 kB

Release files / heist-salt-1.tar.gz

Download URL heist-salt-1.tar.gz
Size 7.2 kB
Tags Source
SHA-256 checksum
How to use checksums
a375c25b3eb0963b6c2e9673d604a89da513ca849933dbf6e9674f9cef79885e
BLAKE2b-256 checksum
How to use checksums
53a22a282ea5da901e52d896c621d6542913a8c9178eed990562cc6e62e088d3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release files / heist_salt-1-py3-none-any.whl

Download URL heist_salt-1-py3-none-any.whl
Size 2.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e6f2dff0bb5a7ee661a62f927be41399860e6bb04c0bdd947fc895d1f404716d
BLAKE2b-256 checksum
How to use checksums
0d82b8356a8ecfa2be31940832dee6d5fe3f851a921d827100ab971f75e5226d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.56.0 CPython/3.9.1

Release history Release notifications | RSS feed

7.0.1

2 release files

6.0.2

2 release files

6.0.1

2 release files

6.0.0

2 release files

5.3.1

2 release files

5.3.0

2 release files

5.2.0

2 release files

5.1.0

2 release files

5.0.0

2 release files

4.0.0

2 release files

3.0.0

2 release files

2.0.0

2 release files

This release

1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page