我在 ubuntu 14.4 VM 上设置了 puppet master。Puppet 代理作为 Windows 8。
这是我的 site.pp 文件。
package { 'git' :
ensure => present,
}
vcsrepo { "C:\\GitCode":
ensure => present,
provider => git,
source => "git://<url>.git",
}
它只会从url下载代码并将其放入C:\GitCode。我已经在master上安装git
和包了。vcsrepo
在 Windows 上运行代理时出现以下错误:
Running Puppet agent on demand ...
Info: Retrieving pluginfacts
Info: Retrieving plugin
Info: Loading facts
Info: Caching catalog for <certname>
Warning: Found multiple default providers for vcsrepo: dummy, p4; using dummy
Info: Applying configuration version '1436188748'
Error: The source parameter is required when using the Windows provider.
Error: /Stage[main]/Main/Package[git]/ensure: change from absent to present failed: The source parameter is required when using the Windows provider.
Error: /Stage[main]/Main/Vcsrepo[C:\GitCode]: Provider git is not functional on this host
Notice: Finished catalog run in 2.05 seconds
Press any key to continue . . .