How to get started?
The command line tool sls will help you with installing salt states
from saltstates.org or any git repository.
You can download sls from https://github.com/saltstates/cli
On your salt master go to the directory containing your salt states,
Create a .sls file in the salt states directory containing:
- <state>: '<version>'
- <state>: 'git:<git url>'
Now just run sls and you are done:
Need more info about sls? check https://github.com/saltstates/cli
Using the states from saltstates.org
In this example we will be using the state
ntp and all files mentioned
are located on the salt master.
The .sls file:
Top state file (static):
Top pillar file:
The ntp pillar file:
ntpservers: [ '127.0.0.1', '127.0.0.2' ]