Bug#1052049: bacula-director: Please amend bacula-dir.conf to include subfiles

2024-02-01 Thread Carsten Leonhardt
Hi Niels,

"Niels S. Richthof"  writes:

> The bacula director configuration file can get very big and messy, especially 
> when backing up many clients.
[...]
> 1. Create a new (empty) directory "/etc/bacula/bacula-dir.conf.d/"
> 2. Add the following snipped to "/etc/bacula/bacula-dir.conf":
>
># Include subfiles associated with configuration of clients.
># They define the bulk of the Clients, Jobs, and FileSets.
># Remember to "reload" the Director after adding a client file.
>#
>@|"sh -c 'for f in /etc/bacula/bacula-dir.conf.d/*.conf ; do echo @${f} ; 
> done'"

I agree that this is good practice, I myself manage my configurations in
a similar way.

My feeling is that it's up to the local administrator to decide how they
want to manage their configurations and implement it accordingly.

One of the gains from the strategy of configuration directories is that
the main configuration does not need to be touched by the local
administrator and so local configuration changes do not conflict with
updated configuration files that are provided in the packages. In the
case of Bacula, all installations I manage have modified main
configuration files because I deviate from many things that are
configured in the default configuration.

If the main config file would be mostly empty or defaults could be
overridden, I'd be in favour of this change, but as it stands now, I'd
rather leave it to the local admin.

As an aside, I'm aware that getting asked to replace the configuration
files on each update is not handy and finding a solution is on my todo
list.

Regards

Carsten



Bug#1052049: bacula-director: Please amend bacula-dir.conf to include subfiles

2023-09-16 Thread Niels S. Richthof
Package: bacula-director
Version: 9.6.7-7
Severity: wishlist

Dear Maintainer,

The bacula director configuration file can get very big and messy, especially 
when backing up many clients.

bacula-director supports the inclusion of subfiles in configuration files,
as documented here:
https://www.bacula.org/9.6.x-manuals/en/main/Customizing_Configuration_F.html#SECTION002023000
(This is also the case in all newer upstream versions.)

Therefore, could you please, in keeping with the way other Debian packages are 
doing this:

1. Create a new (empty) directory "/etc/bacula/bacula-dir.conf.d/"
2. Add the following snipped to "/etc/bacula/bacula-dir.conf":

   # Include subfiles associated with configuration of clients.
   # They define the bulk of the Clients, Jobs, and FileSets.
   # Remember to "reload" the Director after adding a client file.
   #
   @|"sh -c 'for f in /etc/bacula/bacula-dir.conf.d/*.conf ; do echo @${f} ; 
done'"


Thank you
Niels

-- System Information:
Debian Release: 12.1
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-23-amd64 (SMP w/2 CPU threads)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages bacula-director depends on:
ii  bacula-common  9.6.7-7
ii  bacula-director-mysql  9.6.7-7
ii  bsd-mailx [mailx]  8.1.2-0.20220412cvs-1
ii  init-system-helpers1.65.2
ii  libc6  2.36-9+deb12u1
ii  libstdc++6 12.2.0-14
ii  sysvinit-utils 3.06-4
ii  ucf3.0043+nmu1

bacula-director recommends no packages.

Versions of packages bacula-director suggests:
pn  bacula-doc  

-- no debconf information