Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 1.17 KB

21-setting-up-git-server-vagrant-ansible.md

File metadata and controls

32 lines (22 loc) · 1.17 KB

Setting up a Git server (Using Vagrant and Ansible)

Video Link HERE

We are going to setup a local Git server. The idea is similar even if you are using a cloud provider.

Vagrant will be used to provision the VM. Vagrantfile is HERE

Ansible will be used to fully automate the management of the git server. Ansible files are HERE

The git-server specific role which has all the stuff needed for the git server is HERE

Steps for manually doing it

It's pretty simple.

  1. Launch a VM (or a cloud server depending on where you are doing it)
  2. Create a git user. This user will be used for all the git operations
  3. Install git
  4. Give access to your ssh keys

Automating it

  1. Create Vagrantfile to launch the VM
  2. Write the Ansible role to do everything that is needed
    • Install the package git
    • Create the git user
    • Manage SSH keys to give access to the repo
    • Manage repositories
  3. Make a prettier DNS address for the git server