bacula: generate bconsole config

This commit is contained in:
Domen Kozar 2013-05-16 21:58:24 +02:00
parent da7d6a4cce
commit 40fb90a295
1 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,7 @@ with pkgs.lib;
let
libDir = "/var/lib/bacula";
fd_cfg = config.services.bacula-fd;
fd_conf = pkgs.writeText "bacula-fd.conf"
''
@ -96,6 +97,17 @@ let
${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, ...}:
{
options = {