summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2018-12-09 18:25:21 +0100
committerGuilhem Moulin <guilhem@fripost.org>2018-12-09 20:25:40 +0100
commit730200a00bb5e300efc35a493f11ec7462d2008f (patch)
tree89a474e3a8669d09076bd9c7449b2dbd4a78a75f
parentbd9901c2e4eadda7d8a3f150c04859e12a26adb1 (diff)
bacula: Backup MySQL database for the nextcloud host.
-rw-r--r--roles/bacula-dir/tasks/main.yml1
-rw-r--r--roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j22
2 files changed, 2 insertions, 1 deletions
diff --git a/roles/bacula-dir/tasks/main.yml b/roles/bacula-dir/tasks/main.yml
index 723aa22..2f7ab25 100644
--- a/roles/bacula-dir/tasks/main.yml
+++ b/roles/bacula-dir/tasks/main.yml
@@ -3,6 +3,7 @@
vars:
packages:
- bacula-console
+ - bacula-director
- bacula-director-mysql
- name: Create a 'bacula' SQL user
diff --git a/roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2 b/roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2
index eb7566b..ee01930 100644
--- a/roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2
+++ b/roles/bacula-dir/templates/etc/bacula/bacula-dir.conf.j2
@@ -125,7 +125,7 @@ Job {
}
{% endfor %}
-{% for fd in groups['MDA'] | union(groups['webmail']) | union(groups['lists']) | union(groups['bacula-dir']) | sort %}
+{% for fd in groups['MDA'] | union(groups['webmail']) | union(groups['lists']) | union(groups['bacula-dir']) | union(groups['nextcloud']) | sort %}
Job {
Name = {{ hostvars[fd].inventory_hostname_short }}-mysql
Client = {{ hostvars[fd].inventory_hostname_short }}-fd