Bacula: Add client to director
I'm using netmanagers/puppet-bacula to deploy bacula to a backup-system and different clients.
The installation of the bacula-director ("main-server") and the bacula-storage ("hdd-handler") is running fine, but if I add a node as server and one as client I do not get an export for my config.
On the director-node there are different directories and files like
├── bacula-dir.conf ├── bacula-fd.conf ├── bacula-sd.conf ├── bconsole.conf ├── clients.d ├── director.d └── storage.d
Now for each client there should be a file called
clients.d. The files
bacula-fd.conf are generated fine - but the client is not generated.
I found a template for the clients in the module - it is located in
templates/director/client.conf.erb but I do not find an attribute where I could insert this template.
This is the YAML of my bacula-director-server:
bacula: client_template: bacula/bacula-fd.conf (the title is not correct - it is the configuration file on the client itself, not the client-template for the director) console_template: bacula/bconsole.conf.erb default_messages: Daemon director_template: bacula/bacula-dir.conf.erb manage_client: 'false' manage_console: 'true' manage_director: 'true' manage_storage: 'true' source_dir_purge: 'true' storage_template: bacula/bacula-sd.conf.erb
This is the YAML of my bacula-client-server:
bacula: client_template: bacula/bacula-fd.conf console_template: bacula/bconsole.conf.erb default_messages: Daemon director_template: bacula/bacula-dir.conf.erb manage_client: 'true' manage_console: 'false' manage_director: 'false' manage_storage: 'false' source_dir_purge: 'false' storage_template: bacula/bacula-sd.conf.erb
Any ideas how to solve this and add a node automatically to bacula-dir?