简体   繁体   中英

salt git.latest not connecting to github repo

We have a state as below:

Some_ID:
  git.latest:
    - name: https://github.com/SomeRepo/SomeDir.git
    - target: /path/to/some/dir

When calling the state it fails with below error:

Failed to check remote refs: error: Failed connect to github.com:443; Operation now in progress while accessing https://github.com/SomeRepo/SomeDir.git/info/refs

The minion is behind a proxy and we have tried specifying the proxy server in the .gitconfig file and we are seeing the minion requests for this repo in the proxy server logs. The minion is able to clone the repo successfully when we run git clone on the minion.

salt 2016.3.2 (Boron)

Anyone have any insights?

因此,这里的问题是salt无法看到家庭环境。.在执行git clone之前,用salt设置家庭环境解决了这个问题。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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