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
It's pretty simple.
- Launch a VM (or a cloud server depending on where you are doing it)
- Create a
git
user. This user will be used for all the git operations - Install git
- Give access to your ssh keys
- Create Vagrantfile to launch the VM
- 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
- Install the package
- Make a prettier DNS address for the git server