Skip to content

Security Aware Machine Provisioning for Debian based Backup Servers

Notifications You must be signed in to change notification settings

Hobart2967/ansible-backup-server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Machine Provisioning for Backup Servers

This ansible project is for provisioning a bare metal Debian 11 box. It provides:

  • Postfix relay client setup

  • APF Firewall setup

  • Fail2Ban, connected to:

    • PostFix, sending emails about bans
    • APF, the firewall configured.
  • Setup of anacron backup jobs:

    • Backup of file systems
    • Coming soon: Backup of MySQL / MariaDB Databases
  • Virtual Box Setup with multiple machines

  • SSH Keys and Trust Relationships between SSH Servers

Usage

Prerequisites

Required Tools

Name Version
Python ^3.0.0
Pip latest
Ansible latest

Workspace Preparation

Setting up your keepass vault

Create a new or download an existing keepass file to your hard drive. This file should contain users, passwords and servers needed for setting up the remote system connection between the database server and the provisioned one.

Setting up Ansible
python3 -m pip install --user ansible

Run

./provision-machine.sh <hostname> <user> keepass_file.kdbx

Infrastructural Dependencies

  • Keepass Database, secured with a password. This one is used as key storage, hiding sensitive data from this repository.

About

Security Aware Machine Provisioning for Debian based Backup Servers

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published