Skip to content

Ansible playbook to deploy gitbucket on multiple servers. Includes LoadBalancer, NFS, Shared DB and Workers

Notifications You must be signed in to change notification settings

saymolet/ansible-gitbucket

Repository files navigation

ansible-gitbucket

This ansible playbook is intented for personal use. But feel free to borrow or modify it for your needs.

Requirements

  • The architecture allows for 1 Load Balancer, 1 Shared Database, 1 Shared NFS Server, and an n number of workers. So in total you need to have 3 + n servers.
  • All servers must be some flavor of RHEL, Oracle Linux or CentOS.
  • Firewall rules restrict ingress trafic to 10.26.0.0/24 mask, so be aware of that.

On Host:

  • dnf update
  • dnf install ansible-core
  • ansible-galaxy collection install -r requirements.yml

Usage

Edit hosts file to include your managed machine adresses. Configure an ssh connection to your managed machines.

Сhange the default password 'root' for vault.yml:

ansible-vault rekey group_vars/all/vault.yml
ansible-vault rekey group_vars/db_servers/vault.yml

Change default password variables inside vault.yml with:

ansible-vault edit group_vars/all/vault.yml
ansible-vault edit group_vars/db_servers/vault.yml

Initiate a playbook by running:

ansible-playbook --ask-vault-pass -i production site.yml

About

Ansible playbook to deploy gitbucket on multiple servers. Includes LoadBalancer, NFS, Shared DB and Workers

Topics

Resources

Stars

Watchers

Forks

Languages