我在Ubuntu 14.4虚拟机上设置了Puppet Master。Windows 8是Puppet Agent。
以下是我的site.pp文件。
以下是我的site.pp文件。
package { 'git' :
ensure => present,
}
vcsrepo { "C:\\GitCode":
ensure => present,
provider => git,
source => "git://<url>.git",
}
它将从url下载代码并将其放入C:\GitCode。我已在主机上安装了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 . . .