https://github.com/theodesp/saltstack-example
A Saltstack example using Vagrant and Docker.
https://github.com/theodesp/saltstack-example
confi docker docker-compose learning-by-doing saltstack vagrant
Last synced: about 1 month ago
JSON representation
A Saltstack example using Vagrant and Docker.
- Host: GitHub
- URL: https://github.com/theodesp/saltstack-example
- Owner: theodesp
- License: apache-2.0
- Created: 2019-05-20T15:56:34.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2019-05-23T12:31:48.000Z (about 7 years ago)
- Last Synced: 2024-10-19T09:18:30.131Z (over 1 year ago)
- Topics: confi, docker, docker-compose, learning-by-doing, saltstack, vagrant
- Language: HCL
- Size: 66.4 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE
Awesome Lists containing this project
README
=================
Saltstack Examples
=================
Saltstack examples using Vagrant and Docker.
Instructions
============
Run the following commands in a terminal. Git, VirtualBox and Vagrant must
already be installed.
.. code-block:: bash
git clone https://github.com/theodesp/saltstack-example.git
cd saltstack-example
vagrant up
This will download an Ubuntu VirtualBox image and create three virtual
machines for you. One will be a Salt Master named `master` and two will be Salt
Minions named `minion1` and `minion2`. The Salt Minions will point to the Salt
Master and the Minion's keys will already be accepted. Because the keys are
pre-generated and reside in the repo, please be sure to regenerate new keys if
you use this for production purposes.
You can then run the following commands to log into the Salt Master and begin
using Salt.
.. code-block:: bash
vagrant ssh master
sudo salt \* test.ping
To use with Docker just run
.. code-block:: bash
docker-compose up -d
docker-compose scale salt-minion=2
docker exec salt-master salt "*" test.ping
To use with Terraform navigate to the `terraform` folder and follow the instruction on the readme.
To use with Packer navigate to the `packer` folder and follow the instruction on the readme.