Skip to content

Commit

Permalink
fix: Remove dbaddress from catalog configuration
Browse files Browse the repository at this point in the history
During Bareos installation, the `dbaddress` is added to the catalog
configuration. However, once defined, the bareos-director service cannot
access the DB anymore. It looks like the `grant_bareos_privileges`
Bareos database preparation script does not configure the access
accordingly. This looks like a bug in Bareos. Removing the `dbaddress`
helps.
  • Loading branch information
btravouillon committed Aug 28, 2023
1 parent a5dcbaf commit 193764d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tasks/bareos_server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
line: ' dbpassword = "{{ bareos_postgres_pass }}"'
when: bareos_postgres_pass is defined

- name: Remove dbaddress from catalog configuration
ansible.builtin.lineinfile:
path: /etc/bareos/bareos-dir.d/catalog/MyCatalog.conf
regexp: '^ dbaddress ='
state: absent

- name: Ensure bareos postgresql is installed
apt:
name: bareos-database-postgresql
Expand Down

0 comments on commit 193764d

Please sign in to comment.