人偶代理:提供程序git在此主机上不起作用 [英] Puppet agent: provider git is not functional on this host

查看:74
本文介绍了人偶代理:提供程序git在此主机上不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几天来我一直在尝试解决此问题,但没有成功,希望您能为我提供帮助:

I been trying to fix this for a couple of days but no succsses yet, hope you can help me out:

我要做的是每天将公司git repo的特定分支克隆到服务器上的特定(Windows)虚拟机.

What I have to do is to daily clone specific branchs of the company's git repo to specific (windows) vm's on the server.

对于学习而言,现在我只是试图将master分支克隆到我的桌面上的文件夹中.

For learning matters, right now im just trying to clone the master branch in a folder on my Desktop.

两个重要发现:

1-我知道git已安装在人偶代理程序上

1 - I know that git is installed on the puppet agent

2-存储库没有密码短语,并且私钥(ssh)在Windows代理上分配得很好.

2 - The repository doesnt have passphrase and the private key (ssh) is well allocated on the windows agent.

现在我拥有的代码:

vcsrepo{ "C:\{Name of the win agent user}\Desktop\folder":
    ensure => present,
    provider => git,
    source =>'git@scm.example.com.br:controle_versoes.git',
}

运行Windows代理时,我收到以下消息:

When I run windows agent I receive the following message:

错误:/Stage [main]/Main/Node [{name oftheagent}]/Vcsrepo [C:\ User {Name 代理用户} \ Desktop \ folder]:提供者git不是 在此主机上正常工作

Error: /Stage[main]/Main/Node[{nameoftheagent}]/Vcsrepo[C:\User{Name of the win agent user}\Desktop\folder]: Provider git is not functional on this host

任何想法是什么问题,或者我该如何解决?

Any idea what the problem is or how could i fix it?

非常感谢!

Gustavo B. Barbosa

Gustavo B. Barbosa

推荐答案

错误("Provider git在此主机上不起作用")通常意味着Puppet无法找到git命令.如果安装了git,则可能意味着该命令不在您的PATH环境变量中的目录中.

The error ("Provider git is not functional on this host") generally means that Puppet is unable to find the git command. If git is installed, that probably means that the command is not in a directory that is in your PATH environment variable.

这篇关于人偶代理:提供程序git在此主机上不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆