Skip to content

ybucci/samba4-docker-ansible

Repository files navigation

If you like it, please support my project

Donate

Deploy a Production Ready Samba4 in Docker

GPL Licence Open Source Love svg1 Docker Linux

Resume

This Ansible automation will install and configure multiple Domain Controllers (DCs) using technologies like Samba4, Bind9, Docker, GlusterFS and Veeam.

Resources

  • High Avaibility
  • Sysvol clusterized with GlusterFS.
  • Multiple DCs
  • Multiple FileServers
  • Audit
  • Bind9 DNS
  • Custom script of Domain Controller Backup
  • Veeam Backup Linux Agent Free with e-mail html reports

Supported Linux Distributions

  • Ubuntu (21.10 / 22.04)
  • Oracle Linux 8

To be added

  • Other distribuitions (Debian, CentOS/RHEL, Fedora)
  • Advanced Security Settings

How to

Requirements

APT
apt-get update
apt-get install python3-pip git sshpass -y
YUM
yum install python3-pip git sshpass -y

pip3 install pip --upgrade
pip3 install ansible
git clone https://github.com/ybucci/samba4-docker-ansible.git
cd samba4-docker-ansible
ansible-galaxy collection install -r requirements.yml

Edit inventory and hosts

inventory/servers/hosts.ini
inventory/servers/group_vars/all/all.yml

Run Playbook

$ ansible-playbook --become -i inventory/servers/hosts.ini install.yml

Domain Controller Backup

/usr/sbin/samba_backup.sh

Backup Veeam

# Access to management console of Veeam backup
$ veeamconfig ui