盐GITFS公式未被下载

时间:2015-08-19 21:35:32

标签: python git amazon-web-services configuration salt-stack

我按照这个tutorial尝试从github安装apache-formual。我更新了/etc/salt/master文件,使用-l debug重新启动了前台中的守护程序,这是我的top.slstest.sls

/etc/salt/master
gitfs_remotes:
   - https://github.com/saltstack-formulas/jenkins-formula.git
   - https://github.com/saltstack-formulas/apache-formula.git

top.sls
base:
    ip-172-31-56-169.ec2.internal:
        - test
test.sls
include:
    - apache

然后我尝试运行minion并收到以下错误

ip-172-31-56-169.ec2.internal:
Data failed to compile:
----------
Specified SLS apache in saltenv base is not available on the salt master or through a configured fileserver.

salt守护进程的输出是:

[INFO    ] Clear payload received with command publish
[DEBUG   ] LazyLoaded local_cache.prep_jid
[DEBUG   ] Sending event - data = {'_stamp': '2015-08-  19T21:22:53.239357', 'minions': ['ip-172-31-56-169.ec2.internal']}
[DEBUG   ] Sending event - data = {'tgt_type': 'glob', 'jid': '20150819212253239143', 'tgt': '*', '_stamp': '2015-08-19T21:22:53.240005', 'user': 'sudo_ubuntu', 'arg': [], 'fun': 'state.highstate', 'minions': ['ip-172-31-56-169.ec2.internal']}
[INFO    ] User sudo_ubuntu Published command state.highstate with jid 20150819212253239143
[DEBUG   ] Published command details {'tgt_type': 'glob', 'jid': '20150819212253239143', 'tgt': '*', 'ret': '', 'user': 'sudo_ubuntu', 'arg':   [], 'fun': 'state.highstate'}
[INFO    ] Clear payload received with command _auth
[INFO    ] Authentication request from ip-172-31-56-169.ec2.internal
[INFO    ] Authentication accepted from ip-172-31-56-169.ec2.internal
[DEBUG   ] Sending event - data = {'id': 'ip-172-31-56-169.ec2.internal', '_stamp': '2015-08-19T21:22:53.256533', 'result': True, 'pub': '-----BEGIN PUBLIC KEY-----\nMII..-----END PUBLIC KEY-----\n', 'act': 'accept'}
[DEBUG   ] LazyLoaded roots.envs
[DEBUG   ] LazyLoaded roots.envs
[DEBUG   ] LazyLoaded jinja.render
[DEBUG   ] LazyLoaded yaml.render
[DEBUG   ] LazyLoaded roots.envs
[DEBUG   ] LazyLoaded roots.envs
[DEBUG   ] LazyLoaded local_cache.prep_jid
[INFO    ] Got return from ip-172-31-56-169.ec2.internal for job 20150819212253239143  
[DEBUG   ] Sending event - data = {'fun_args': [], 'jid': '20150819212253239143', 'return': ['Specified SLS apache in saltenv base is not available on the salt master or through a configured fileserver'], 'retcode': 1, 'success': True, 'cmd': '_return', '_stamp': '2015-08-19T21:22:53.520679', 'fun': 'state.highstate', 'id': 'ip-172-31-56-169.ec2.internal', 'out': 'highstate'}

正如你所看到的那样,python-git无法正常工作。我在尝试任何事情之前都安装了apt-get install python-git

有什么不对?

1 个答案:

答案 0 :(得分:0)

您还需要在主配置中指定fileserver_backend。默认设置为roots

<强>的/ etc /盐/主

fileserver_backend:
  - roots
  - git

gitfs_remotes:
  - https://github.com/saltstack-formulas/jenkins-formula.git
  - https://github.com/saltstack-formulas/apache-formula.git