-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from adfinis/bump_bareos_fd
feat(role): update bareos_fd version to v1.1.1
- Loading branch information
Showing
13 changed files
with
142 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
--- | ||
namespace: adfinis | ||
name: bareos | ||
version: 1.0.0 | ||
version: 1.0.5 | ||
readme: README.md | ||
authors: | ||
- Adfinis | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,3 +5,4 @@ roles: | |
|
||
collections: | ||
- name: community.crypto | ||
- name: community.general |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,18 @@ | ||
--- | ||
|
||
- name: plugins | Get Bareos plugin package names | ||
- name: plugins | Get data | ||
ansible.builtin.set_fact: | ||
_plugin_packages: | ||
"{{ bareos_fd_plugin_list | selectattr('name', 'match', item) | map(attribute='package_name') }}" | ||
_plugin_data: >- | ||
{{ _plugin_data + (bareos_fd_plugin_list | selectattr('name', 'equalto', item) | list) }} | ||
loop: "{{ bareos_fd_plugins }}" | ||
vars: | ||
_plugin_data: [] # empty list to append to | ||
|
||
- name: plugins | Install Bareos plugin packages | ||
ansible.builtin.package: | ||
name: "{{ _plugin_packages }}" | ||
name: "{{ item.packages }}" | ||
state: present | ||
loop: "{{ _plugin_data }}" | ||
notify: | ||
- Check configuration | ||
- Restart bareos-filedaemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
--- | ||
|
||
bareos_fd_encryption_packages: | ||
- python-cryptography | ||
|
||
bareos_fd_service: bareos-fd | ||
|
||
bareos_fd_debug_packages: | ||
- bareos-devel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
RedHat_7.yml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
--- | ||
|
||
bareos_fd_debug_packages: | ||
- bareos-dbg | ||
- gdb | ||
|
||
bareos_fd_plugin_dir: "/usr/lib/bareos/plugins" | ||
bareos_fd_plugin_name: python3 | ||
bareos_fd_plugin_list: | ||
- name: mariabackup | ||
packages: | ||
- bareos-filedaemon-mariabackup-python-plugin | ||
|
||
- name: mysql | ||
packages: | ||
- python3-mysqldb | ||
|
||
- name: postgresql | ||
packages: | ||
- bareos-filedaemon-postgresql-python-plugin | ||
|
||
- name: ldap | ||
packages: | ||
- python3-ldap | ||
- bareos-filedaemon-ldap-python-plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
--- | ||
|
||
bareos_fd_debug_packages: | ||
- bareos-filedaemon-debuginfo | ||
- gdb | ||
|
||
bareos_fd_plugin_dir: "/usr/lib64/bareos/plugins" | ||
bareos_fd_plugin_name: python3 | ||
bareos_fd_plugin_list: | ||
- name: mariabackup | ||
packages: | ||
- bareos-filedaemon-mariabackup-python-plugin | ||
|
||
# TODO RHEL offers no python-mysqlclient package per default. | ||
# Check if PyMySQL is working with the plugin | ||
- name: mysql | ||
packages: | ||
- python3-PyMySQL | ||
|
||
- name: postgresql | ||
packages: | ||
- bareos-filedaemon-postgresql-python-plugin | ||
|
||
- name: ldap | ||
packages: | ||
- bareos-filedaemon-ldap-python-plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
--- | ||
|
||
bareos_fd_encryption_packages: | ||
- python2-cryptography | ||
|
||
bareos_fd_debug_packages: | ||
- bareos-debuginfo | ||
- gdb | ||
|
||
bareos_fd_plugin_dir: "/usr/lib64/bareos/plugins" | ||
bareos_fd_plugin_name: python | ||
bareos_fd_plugin_list: | ||
- name: mariabackup | ||
packages: | ||
- bareos-filedaemon-mariabackup-python-plugin | ||
|
||
- name: mysql | ||
packages: | ||
- MySQL-python | ||
|
||
- name: postgresql | ||
packages: | ||
- bareos-filedaemon-postgresql-python-plugin | ||
|
||
- name: ldap | ||
packages: | ||
- bareos-filedaemon-ldap-python-plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
--- | ||
|
||
bareos_fd_debug_packages: | ||
- gdb | ||
|
||
bareos_fd_plugin_dir: "/usr/lib64/bareos/plugins" | ||
bareos_fd_plugin_name: python3 | ||
bareos_fd_plugin_list: | ||
- name: mariabackup | ||
packages: | ||
- bareos-filedaemon-mariabackup-python-plugin | ||
|
||
- name: mysql | ||
packages: | ||
- python3-mysqlclient | ||
|
||
- name: postgresql | ||
packages: | ||
- bareos-filedaemon-postgresql-python-plugin | ||
|
||
- name: ldap | ||
packages: | ||
- bareos-filedaemon-ldap-python-plugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,49 +1,12 @@ | ||
--- | ||
# vars file for bareos_fd | ||
|
||
# A map to define the packages to install for encryption. | ||
_bareos_fd_encryption_packages: | ||
default: | ||
- python3-cryptography | ||
Archlinux: | ||
- python-cryptography | ||
RedHat-7: | ||
- python2-cryptography | ||
bareos_fd_encryption_packages: "{{ _bareos_fd_encryption_packages[ansible_os_family ~ '-' ~ ansible_distribution_major_version] | default(_bareos_fd_encryption_packages[ansible_os_family]) | default(_bareos_fd_encryption_packages['default']) }}" | ||
bareos_fd_encryption_packages: | ||
- python3-cryptography | ||
|
||
# A map to define the service name to manage. | ||
_bareos_fd_service: | ||
default: bareos-filedaemon | ||
Archlinux: bareos-fd | ||
bareos_fd_service: "{{ _bareos_fd_service[ansible_os_family] | default(_bareos_fd_service['default']) }}" | ||
bareos_fd_service: bareos-filedaemon | ||
bareos_fd_plugin_name: python3 | ||
|
||
# A map to define the packages to install for debugging. | ||
_bareos_fd_debug_packages: | ||
default: | ||
- bareos-filedaemon-debuginfo | ||
- gdb | ||
Archlinux: | ||
- bareos-devel | ||
Debian: | ||
- bareos-dbg | ||
- gdb | ||
RedHat-7: | ||
- bareos-debuginfo | ||
- gdb | ||
bareos_fd_debug_packages: "{{ _bareos_fd_debug_packages[ansible_os_family ~ '-' ~ ansible_distribution_major_version] | default(_bareos_fd_debug_packages[ansible_os_family]) | default(_bareos_fd_debug_packages['default']) }}" | ||
|
||
# A list of Bareos FD plugins and their packages | ||
bareos_fd_plugin_list: | ||
- name: mariabackup | ||
package_name: bareos-filedaemon-mariabackup-python-plugin | ||
plugin_dir: "/usr/lib64/bareos/plugins" | ||
plugin_names: python3 | ||
- name: mysql | ||
plugin_dir: "/usr/lib64/bareos/plugins" | ||
plugin_names: python3 | ||
- name: postgresql | ||
package_name: bareos-filedaemon-postgresql-python-plugin | ||
plugin_dir: "/usr/lib64/bareos/plugins" | ||
plugin_names: python3 | ||
- name: ldap | ||
package_name: bareos-filedaemon-ldap-python-plugin | ||
# define the following stuff on Distro level (vars/<Distro.yml>). If a Distro is not there, it's not supported. | ||
# bareos_fd_plugin_list: every distro might have different package names and dependencies | ||
# bareos_fd_plugin_dir: /usr/lib on Debian, /usr/lib64 on "others" |