Most of the examples -- and also the documentation -- of SaltStack put the states files under /srv/salt
and the pillars files under /srv/pillar
.
This means if I want to track the files using a source control (Mercurial or Git), I have to create two repositories.
Now, I want place the states files and the pillars files as subdirectories under /srv/salt
. Or, in other words, I will get the following directory structure (after hg init
on /srv/salt
):
/srv/salt
+ .hg/
+ states/
+ pillars/
Will this cause any problems with SaltStack?
Or do you have a better recommendation so that I can have only one source control repository for both the states and the pillars?