【问题标题】:Salt GITFS Formulas Not Being DownloadedSalt GITFS 公式未下载
【发布时间】:2015-11-13 09:00:58
【问题描述】:

我按照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.

盐守护进程的输出是:

[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

有什么问题?

【问题讨论】:

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


    【解决方案1】:

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

    /etc/salt/master

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

    【讨论】:

      猜你喜欢
      • 2022-12-09
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-20
      相关资源
      最近更新 更多