From 284f7fbf25ca3e419bf66ac7e9c9ce93ec22a2a5 Mon Sep 17 00:00:00 2001 From: Markus Rosenstihl Date: Sat, 10 Feb 2024 17:08:08 +0100 Subject: [PATCH] added bacula-conf.py --- bacula-conf.py | 2 ++ liebchen.yml | 11 +++++++++++ 2 files changed, 13 insertions(+) diff --git a/bacula-conf.py b/bacula-conf.py index 5ced316..5467252 100644 --- a/bacula-conf.py +++ b/bacula-conf.py @@ -42,6 +42,8 @@ elif platform.system() == "Linux": else: raise ValueError +if not fqdn.endswith(".liebchen.fkp"): + fqdn += ".liebchen.fkp" data = { "client":hostname, diff --git a/liebchen.yml b/liebchen.yml index df0e655..0b95193 100644 --- a/liebchen.yml +++ b/liebchen.yml @@ -41,3 +41,14 @@ apt: name: bacula-fd default_release: jammy-proposed + - name: Install script for bacula-fd configuration + copy: + src: bacula-conf.py + dest: /usr/local/bin/bacula-conf.py + mode: 0700 + - name: run configuration for bacula-fd + command: /usr/local/bin/bacula-conf.py + - name: Restart service bacula-fd + service: + name: bacula-fd + state: restarted \ No newline at end of file