Hi All,
I am trying to use the Gitfs backend to serve state files as described here:
http://docs.saltstack.com/topics/tutorials/gitfs.html using a local git repo as the 'remote'. However, it seems that salt is not finding my top.sls file. The log is showing "Loaded gitfs as virtual git" , so the backend is loading correctly, but when I try a salt 'test-host' state.highstate, no state is applied:
changes:
----------
comment:
No Top file or external nodes data matches found
name:
No States
result:
False
The relevant part of my /etc/master file is:
fileserver_backend:
- git
git_remotes:
- file:///repos/base1.git
The repo was created (on ubuntu 12.04) like so:
mkdir -p /repos/base1.git
cd /repos/saltbase.git
git --bare init
I am able to clone the repo on the system, as expected with:
git clone file:///repos/saltbase.git
If I use a clone of the git repo as the "file_roots" directory, then the state gets applied properly.
i.e. /etc/salt/master:
file_roots:
base:
- /srv/saltbase (where this directory is a clone of the above git repo)
fileserver_backend:
- roots
Again, everything works properly if I just clone the repo to a directory and use that directory as the "file_roots: base" parameter, so I really don't think there is a problem with my top.sls file but it's contents are:
base:
'test-host':
- test
and test.sls (in the same directory):
tmux:
pkg:
- installed
Everything I can find about the gitfs backend seems to be regarding using a truly remote git repo, but the config file indicates that using the file:/// URI format should work. Does anyone have this working? Any help would be greatly appreciated.
Thanks,
Jason