Improper configuration
This section was improper for me since I didn't have anything on local filesystem.
fileserver_backend:
- git
- roots
I changed it to:
fileserver_backend:
- git
Missing GitPython
easy_install GitPython
wrong configuration (GitPython vs pygit2)
My configuration was:
gitfs_provider: gitpython
gitfs_remotes:
- ssh://git.example.com/salt-states.git:
- pubkey: /root/.ssh/id_rsa.pub
- privkey: /root/.ssh/id_rsa
But looking at the logs, tail /var/log/salt/master
:
2015-02-24 14:25:37,162 [salt.loaded.int.fileserver.gitfs ][CRITICAL] GitFS authentication parameter 'privkey' (from remote ssh://git.example.com/salt-states.git) is only supported by the following provider(s): pygit2. Current gitfs_provider is 'gitpython'. See the GitFS Walkthrough in the Salt documentation for further information.
gitfs_provider: gitpython
gitfs_remotes:
- ssh://git.example.com/salt-states.git
Everything else (IdentityFile
) is specified in /root/.ssh/config
.
Cache is polluted
I had leftover data from previous experiments; so I had to clean the cache:
rm -rf /var/cache/salt/*