如何将gitfs remote与SaltStack一起使用?

如何将gitfs remote与SaltStack一起使用?,git,github,salt-stack,Git,Github,Salt Stack,我希望能够将我的git回购协议与salt同步。我在主配置文件中添加了以下内容: #Git File servers fileserver_backend: - git gitfs_remotes: - https://github.com/saltstack-formulas/salt-formula.git - https://git.<company-name>.com/<owner>/<repo>/tree/testing 但没有看到对该

我希望能够将我的git回购协议与salt同步。我在主配置文件中添加了以下内容:

#Git File servers
fileserver_backend:
  - git

gitfs_remotes:
  - https://github.com/saltstack-formulas/salt-formula.git
  - https://git.<company-name>.com/<owner>/<repo>/tree/testing

但没有看到对该文件的更改。我肯定我没有正确地使用这个,但我不太确定是怎么回事,因为我还是盐的新手

文件和gitfs根被合并到salt中,这对您来说不是真正可见的,因为文件和更改没有反映在例如
/srv/salt

相反,存储库内容位于
/var/cache/salt
下的某个位置(至少对于类似debian的发行版),但是在
top.sls
中,您应该能够使用gitfs remote中定义的状态。e、 g.在盐配方的情况下,可使用名为
salt.master
的状态

.sls
文件应位于gitfs中,或位于主机上状态树的本地

sudo salt-run fileserver.update