I am new to gitlab and puppet and trying my hands on it. I have created a small lab setup where I have a gitlab server and one puppet master server. In the gitlab server, I created a group and project for puppet and added the root ssh key in deploy key in the project.
I am able to clone the repository from my own user. But I am not able to clone the project on puppet server using root via ssh. I am sure I am missing some important step(s) but couldn’t figure out what. Any ideas what is wrong.
Working for my user :-
[varun@varun-pc2 ~] pwd /home/varun [varun@varun-pc2 ~] mkdir git
[varun@varun-pc2 ~] cd git [varun@varun-pc2 git] git clone email@example.com:puppet/puppet4
Cloning into 'puppet4'…
The authenticity of host 'gitlab.varun.com (10.0.0.23)' can't be established.
ECDSA key fingerprint is SHA256:3aWTpHhPA1lP/R7jLqcbjjYqV8tKCpPXKIkiyXezml4.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added 'gitlab.varun.com,10.0.0.23' (ECDSA) to the list of known hosts.
remote: Enumerating objects: 15, done.
remote: Counting objects: 100% (15/15), done.
remote: Compressing objects: 100% (10/10), done.
remote: Total 15 (delta 3), reused 0 (delta 0)
Receiving objects: 100% (15/15), done.
Resolving deltas: 100% (3/3), done.
Not working on puppet master
[root@ls003 environments]# pwd
[root@ls003 environments]# git clone -b puppet4_test firstname.lastname@example.org:puppet/puppet4.git
Cloning into ‘puppet4’…
GitLab: The project you were looking for could not be found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.