Install GitLab for use with Code Manager

GitLab

  1. On a new server, install GitLab.
  2. After GitLab is installed, sign into the web UI with the user root.
    • The first time you visit the UI it will force you to enter a password for the root user.
  3. In the GitLab UI, create a group called puppet.
  4. In the GitLab UI, make yourself a user to edit and push code.

  5. From your laptop or development machine, make an SSH key and link it with your GitLab user.
  6. In the GitLab UI, add your user to the puppet group.
  7. In the GitLab UI, create a project called control-repo and set its Namespace to the puppet group.

  8. On your laptop, clone this PuppetLabs-RampUpProgram control repo.
    • git clone https://github.com/PuppetLabs-RampUpProgram/control-repo.git
    • cd control-repo
  9. On your laptop, remove the origin remote.
    • git remote remove origin
  10. On your laptop, add your GitLab repo as the origin remote.
    • git remote add origin <SSH URL of your GitLab repo>
  11. On your laptop, push the production branch of the repo from your machine up to your Git server.
    • git push origin production