leadlineit.bareos_fd
Ansible Galaxy Role for Installing and Configuring Bareos-FD (version 22)
This role is designed to help you install and set up Bareos-FD (version 22).
Supported Operating Systems
- Debian 12 (bookworm)
- Debian 11 (bullseye)
- Debian 10 (buster)
- RHEL 9 (CentOS Stream 9)
- RHEL 8 (CentOS Stream 8)
- RHEL 7 (CentOS 7)
Requirements
You need Ansible version 2.11 or higher to use this role.
Role Variables
Here are some variables you can customize for this role:
---
bareos_tls_path: /etc/bareos/tls
bareos_tls_certs: your.bareos.dir.com
bareos_fd:
director:
- name: your-dir
description: Director that can contact this file daemon.
password: DIRAver@gEStr0ngPaSSw0rd
tls_enable: "yes"
- name: your-mon
description: Description for restricted Director monitor
password: MONAver@gEStr0ngPaSSw0rd
monitor: "yes"
tls_enable: "yes"
client:
- name: your-client
description: Your Bareos client
fdport: 9102
max_jobs: 20
tls_enable: "yes"
messages:
- name: your-messages
description: Messages description
server: your-dir
These variables are optional. If you don't provide them, the tasks using these variables will be skipped. You can set one, some, or none at all, and it will still install Bareos-FD with the default settings.
You can also enable Percona XtraBackup for MySQL by adding this variable:
---
percona_xtrabackup: "yes"
Make sure to use this only if you have 'mysql-community-server' installed.
Additionally, you can use HashiCorp Vault to store client certificates (if you're using Bareos with TLS). Here's the optional variable for that:
---
hashicorp_vault:
address: your.vault.com
token: your_token
path: your-path-to-certs
clients:
- name: host1.client1
client: client1
role: role1
ttl: 24h
- name: host2.client1
client: client1
role: role1
ttl: 18h
- name: host01.client2
client: client2
role: client2
ttl: 12h
- name: host02.client2
client: client2
role: client2
ttl: 96h
You can also remotely add client configurations to your main Bareos Director server with this optional variable:
---
bareos_server: you.bareos.dir.server
bareos_dir:
client:
- name: your-client
description: Your client configuration
address: 10.0.0.1
fdport: 9102
max_jobs: 20
passive: "yes"
tls_enable: "yes"
jobs:
- name: client-job1
description: Job1 for client
client: client.name.com
jobdef: your-jobdefs1
- name: client-job2
description: Job2 for client
pool: your-pool
fileset: "your-fileset"
schedule: "your-schedule"
Dependencies
There are no dependencies.
Example Playbook
Here's a simple example of how to use this role in your playbook:
- hosts: servers
roles:
- { role: leadlineit.bareos_fd, tags: bareos_fd }
License
MIT License
Author Information
This role was created by Artem Kasianchuk.
Install and configure Bareos-FD
ansible-galaxy install leadlineit.bareos_fd