bacula: generate bconsole config
This commit is contained in:
parent
da7d6a4cce
commit
40fb90a295
@ -7,6 +7,7 @@ with pkgs.lib;
|
|||||||
|
|
||||||
let
|
let
|
||||||
libDir = "/var/lib/bacula";
|
libDir = "/var/lib/bacula";
|
||||||
|
|
||||||
fd_cfg = config.services.bacula-fd;
|
fd_cfg = config.services.bacula-fd;
|
||||||
fd_conf = pkgs.writeText "bacula-fd.conf"
|
fd_conf = pkgs.writeText "bacula-fd.conf"
|
||||||
''
|
''
|
||||||
@ -96,6 +97,17 @@ let
|
|||||||
${dir_cfg.extraConfig}
|
${dir_cfg.extraConfig}
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
# TODO: by default use this config
|
||||||
|
bconsole_conf = pkgs.writeText "bconsole.conf"
|
||||||
|
''
|
||||||
|
Director {
|
||||||
|
Name = ${dir_cfg.name};
|
||||||
|
Address = "localhost";
|
||||||
|
DirPort = ${toString dir_cfg.port};
|
||||||
|
Password = "${dir_cfg.password}";
|
||||||
|
}
|
||||||
|
'';
|
||||||
|
|
||||||
directorOptions = {name, config, ...}:
|
directorOptions = {name, config, ...}:
|
||||||
{
|
{
|
||||||
options = {
|
options = {
|
||||||
|
Loading…
Reference in New Issue
Block a user