Skip to content
This repository has been archived by the owner on Aug 23, 2023. It is now read-only.

robertdebock/ansible-role-bareos

ARCHIVED and replaced by:

Install and configure bareos on your system.

GitHub GitLab Quality Downloads Version
github gitlab quality downloads Version

This example is taken from molecule/default/converge.yml and is tested on each push, pull request and release.

---
- name: Converge
  hosts: all
  become: yes
  gather_facts: yes

  # Bareos has three types of roles: fd (File Daemon), sd (Storage Daemon), and dir (Director).
  # We want to test all three roles, so we need to run the role three times, each time with
  # a different value for the variable bareos_role.
  roles:
    - role: robertdebock.bareos
    - role: robertdebock.bareos
      bareos_role: sd
    - role: robertdebock.bareos
      bareos_role: dir

The machine needs to be prepared. In CI this is done using molecule/default/prepare.yml:

---
- name: Prepare
  hosts: all
  become: yes
  gather_facts: no

  # We are going to install all components on one hosts.
  # This is not what is typically done, but works for testing.

  roles:
    - role: robertdebock.bootstrap
    # The roles buildtools, python_pip and postgres are only required for the `bareos_role`: dir.
    - role: robertdebock.buildtools
    - role: robertdebock.python_pip
    - role: robertdebock.postgres

Also see a full explanation and example on how to use these roles.

The default values for the variables are set in defaults/main.yml:

---
# defaults file for bareos

# What type of Bareos to install, either "community" or "subscription".
bareos_type: community

# What release to use, either "current", "next" or "release".
bareos_release: current

# What version to install, either "20", "21" or "22".
bareos_version: 22

# What role should be used, either "fd" (File Daemon)), "sd" (Storage Daemon), or "dir" (Director).
# You can only select one role, so if you want to have mulitple roles on a server,
# you need to run this role multiple times, each time with a different role.
bareos_role: fd

The following roles are used to prepare a system. You can prepare your system in another way.

Requirement GitHub GitLab
robertdebock.bootstrap Build Status GitHub Build Status GitLab
robertdebock.buildtools Build Status GitHub Build Status GitLab
robertdebock.python_pip Build Status GitHub Build Status GitLab
robertdebock.postgres Build Status GitHub Build Status GitLab

This role is a part of many compatible roles. Have a look at the documentation of these roles for further information.

Here is an overview of related roles: dependencies

This role has been tested on these container images:

container tags
Debian all
EL 8, 9
Fedora 37
opensuse all
Ubuntu jammy

The minimum version of Ansible required is 2.12, tests have been done to:

  • The previous version.
  • The current version.
  • The development version.

If you find issues, please register them in GitHub

Apache-2.0.

robertdebock

Please consider sponsoring me.