Puppet gitlab hooks and puppet-sync


I have just installed a gitlab server and a puppet server and I am in the process of integrating the two so that branches on my puppet project create new puppet environments.

I have followed the guide in this URL: http://unix.bris.ac.uk/2015/04/22/integrating-puppet-and-git/

However, branches are not creating new environments and when I do a manual run of puppet-sync I get an message:

-bash-4.2$ puppet-sync -v -b test -d /etc/puppetlabs/code/environments -r git@gitlab:puppet/puppet5.git
.----------------------------------------------- PuppetSync —
| Host : puppet
| Branch : test
| Deploy To : /etc/puppetlabs/code/environments/test
| Repository : git@gitlab:puppet/puppet5.git
| Executing: git clone git@gitlab:puppet/puppet5.git /etc/puppetlabs/code/environments/test -b test
| Cloning into ‘/etc/puppetlabs/code/environments/test’…
| fatal: ‘puppet/puppet5.git’ does not appear to be a git repository
| fatal: Could not read from remote repository.
| Please make sure you have the correct access rights
| and the repository exists.
| /usr/local/bin/puppet-sync:108:in chdir' | /usr/local/bin/puppet-sync:108:in update’
| /usr/local/bin/puppet-sync:79:in run' | /usr/local/bin/puppet-sync:233:in

I have removed the domain portion of the addresses above, they have been provided as fqdn at runtime.

The puppet project is private but the puppet user on the puppet server has an ~puppet/.ssh/id_rsa ssl certificate whose id_rsa.pub content has been added to the gitlab project as a deploy key.
I tested the hook at the gitlab end in the custom_hooks directory and it can communicate with the puppet server - the ssh cetificate set allows it to ssh to the puppet server but it fails at the puppet-sync step.

Can anyone tell me what I am missing here?




Can anyone assist here? This issue is driving me nuts and preventing me from moving forwards.

I followed the guide that I provided the link to almost to the letter yet it does not work.