我想使用vcsrepo拉一些gitlab仓库,但由于某种原因,它无法执行。
vcsrepo { "/tmp/repo/update": ensure => present, provider => git, source => "git@gitlab:${git_url}", user => 'update', }
ssh密钥属于用户更新,源无法使用或不使用'git @'
错误:
err:/ Stage [main] // Node [xxx] / Git :: Add_git [webhooks] / Vcsrepo [/ tmp / webhooks / update] /确保:从缺席变成失败:无法设置'present on ensure:undefined方法`执行'Puppet :: Util :: Execution:模块在/tmp/vagrant-puppet-2/modules-0/git/manifests/init.pp:54
我做错了什么?
如果您在Puppet 2.7中使用最新版本的vcsrepo( https://forge.puppetlabs.com/puppetlabs/vcsrepo ),那可能是它无法正常工作的原因。 根据伪造页面,它需要Puppet 3.x.