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?