I have a set of SLS files including top.sls in a GIT repo.
I have multiple environments like DEV, UAT, T25 etc. that have to use THE SAME SLS files.
State files are ONLY kept in GitFS
/etc/salt/master
-------------------------------------------------------
gitfs_remotes:
- ssh://user@gitserver/git/sls.git:
- name: salt
- base: master
- root: linux/dev/saltstack/srv/salt
- mountpoint: salt://salt
- ssh://user@gitserver/git/sls.git:
- name: pillar
- base: master
- root: linux/dev/saltstack/srv/pillar
- mountpoint: salt://pillar
The above configuration only maps SLS files to BASE, and I need them to be mapped to ALL other environments i.e. DEV, UAT, T25 etc.
Note, this can be easily done WITHOUT GitFS by placing SLS files into /srv/salt/ and /srv/pillar/ and configuring 'file_roots' and 'pillar_roots':
/etc/salt/master
---------------------
file_roots:
base:
- /srv/salt
UAT:
- /srv/salt
T25:
- /srv/salt
My interest however is to achieve this WITH GitFS, which I failed so far.