I'm trying out Saltstack, it looks really good. However, I can't find relevant documentation about the basic structure - there are tons of examples, but the basic stuff is never explained. I want this clear before structuring up my salt master.
So, my questions:
1. What's the difference between the salt/ and the pillar/ directory?
2. What defines the environment - top.sls or directory structure?
In depth:
1. I can put state files (.sls) under both the salt/ and the pillar/ directory - what's the difference?
Some doc's suggest putting everything under pillar/, some puts everything under salt/, some docs uses both directories.
In
http://docs.saltstack.com/en/latest/...practices.html it gets really confusing as the state files for package "vim" is placed under salt/vim/, but apaches are placed under pillar/apache/.
2. The environment: What defines the environment?
Suggestion is to have directory structure like this:
salt/base/
salt/dev/
salt/prod/
pillar/base/
pillar/dev/
pillar/prod/
Then in the top.sls there are lines "base:" "dev:" "prod:" etc.
Is that a
reference to these directories, or is it the environment
definition?