https://github.com/blndev/saltstack-playground
Virtualbox based Dev/Test System for Salt
https://github.com/blndev/saltstack-playground
Last synced: 9 months ago
JSON representation
Virtualbox based Dev/Test System for Salt
- Host: GitHub
- URL: https://github.com/blndev/saltstack-playground
- Owner: blndev
- Created: 2020-02-27T11:54:09.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2021-04-30T13:46:22.000Z (about 5 years ago)
- Last Synced: 2025-07-19T04:56:34.373Z (11 months ago)
- Language: SaltStack
- Size: 111 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Saltstack-Playground
Virtualbox based Dev/Test System for Salt.
It's based on the original Salt Demo Environment with a gew fixes and modifications.
You still can run all of the Tutorials menationed in the "getting Started" documentation:
## Prepare Environment
If you run VirtuaBox 6.1 you need to patch Vagrant manually, because VB6.1 it's currently not officially supported.
The change are only a few lines of code and well described.
Please check details here:
## My Setup
* Master - Master Server and as well a Minion0
* Minion 1, 2 - Prepared with individual key and auto accept
* Minion 3 - client installed with a different Key than announced on the sever - result should be denied (test for an exchanged cert)
* Minion 4 - occurs as unknown key, needs to be accepted (shared Key with Minion 2)
* Minion 5,6 - using a self created keys and shared config - both getting fqdn and needs to be accepted by salt-key
## Terminology
Pillar: a file with dynamic variables, pushed and executed on each minion
Salt: a Package (SLS File) which defines a set of actions to be executed on each minion
## Getting started
To start work with Salt you need the following commands.
But i would suggest to run the tutorials mentioned above first.
````bash
vagrant up
vagrant ssh master
sudo su -
````
### check all Minions
````bash
salt-key --list-all
salt-key --accept= #or --accept-all
salt '*' test.ping
````
### Apply a Package
````bash
salt '*' state.apply examples
````
### Send new Pillars to Minions
````bash
salt '*' saltutil.refresh_pillar
salt '*' pillar.items
````