简体   繁体   English

Gitfs 作为 salt-stack 的后端不起作用

[英]Gitfs as backend for salt-stack not working

I am using 2015.8.1 salt-master version and i want to use gitfs as backend but its not working for me.我使用的是 2015.8.1 salt-master 版本,我想使用 gitfs 作为后端,但它对我不起作用。

Please check the below config for the same.请检查以下配置是否相同。

fileserver_backend:
  - git

gitfs_provider: pygit2
gitfs_user: salt-stack
gitfs_password: salt-stack-pass
gitfs_insecure_auth: True

gitfs_remotes:
  - http://gitlab.com/url/cm.git:
    - root: salt/salt-states
    - base: master 

After git clone http://gitlab.com/url/cm.git my dir structure look like below.git clone http://gitlab.com/url/cm.git我的目录结构如下所示。

cm/salt/salt-states/top.sls
cm/salt/salt-states/pkg/init.sls

I want to run below command which will run state file under repo.我想在命令下运行,该命令将在 repo 下运行状态文件。

salt * state.sls pkg master

Is that right command and config?这是正确的命令和配置吗?

There are known issues with gitfs on 2015.8.1. 2015.8.1 上的 gitfs 存在已知问题。 Check the issues list on Github!查看 Github 上的问题列表!

Try 2015.5.6, you'll have a better time.试试 2015.5.6,你会过得更好。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM