Ask Your Question

Vcsrepo not compatible with gitlab?

asked 2015-01-28 01:45:09 -0600

wubbrubb gravatar image

I want to pull some gitlab repositories using vcsrepo but for some reason it fails to execute.

vcsrepo { "/tmp/repo/update":
 ensure => present,
 provider => git,
 source => "git@gitlab:${git_url}",
 user => 'update',

The ssh key belongs to the user update, the source doesn't work with or without 'git@'

The error:

err: /Stage[main]//Node[xxx]/Git::Add_git[webhooks]/Vcsrepo[/tmp/webhooks/update]/ensure: change from absent to present failed: Could not set 'present on ensure: undefined method `execute' for Puppet::Util::Execution:Module at /tmp/vagrant-puppet-2/modules-0/git/manifests/init.pp:54

What did I do wrong?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2015-11-12 13:05:28 -0600

sodabrew gravatar image

When the 'user' parameter is present, the Vcsrepo module executes the git wrapper script using Puppet::Util::Execute which is a Puppet 3.x feature. You may be running Puppet 2.x, so you'll have to avoid the 'user' parameter until you upgrade.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-01-28 01:45:09 -0600

Seen: 183 times

Last updated: Jan 28 '15