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