/salt-stack-example

Fat-free example of SaltStack configuration.

Primary LanguageScheme

SaltStack Example

It is used as Salt configuration example in Slides about SaltStack.

Clone this repository and set up VM using Vagrant.

$ git clone https://github.com/marselester/salt-stack-example.git
$ cd salt-stack-example/vagrant
$ vagrant up

In order to interact with VM you should add 111.222.111.222 salt-hello-world to /etc/hosts.

Install Fabric and set up Salt masterless minion in VM.

$ cd salt-stack-example
$ pip install fabric
$ fab setup_masterless_minion

Finally deploy development or production environment in VM.

$ fab salt_env:development deploy

Enjoy the result page (it will be served by Nginx).