Merge pull request #72787 from jpotier/master
Vault: fix config when file backend is used
This commit is contained in:
commit
2cb12e0eaa
@ -119,9 +119,8 @@ in
|
|||||||
};
|
};
|
||||||
users.groups.vault.gid = config.ids.gids.vault;
|
users.groups.vault.gid = config.ids.gids.vault;
|
||||||
|
|
||||||
systemd.tmpfiles.rules = optional (cfg.storagePath != null) [
|
systemd.tmpfiles.rules = optional (cfg.storagePath != null)
|
||||||
"d '${cfg.storagePath}' 0700 vault vault - -"
|
"d '${cfg.storagePath}' 0700 vault vault - -";
|
||||||
];
|
|
||||||
|
|
||||||
systemd.services.vault = {
|
systemd.services.vault = {
|
||||||
description = "Vault server daemon";
|
description = "Vault server daemon";
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
import ./make-test.nix ({ pkgs, ... }:
|
import ./make-test-python.nix ({ pkgs, ... }:
|
||||||
{
|
{
|
||||||
name = "vault";
|
name = "vault";
|
||||||
meta = with pkgs.stdenv.lib.maintainers; {
|
meta = with pkgs.stdenv.lib.maintainers; {
|
||||||
@ -12,12 +12,12 @@ import ./make-test.nix ({ pkgs, ... }:
|
|||||||
|
|
||||||
testScript =
|
testScript =
|
||||||
''
|
''
|
||||||
startAll;
|
start_all()
|
||||||
|
|
||||||
$machine->waitForUnit('multi-user.target');
|
machine.wait_for_unit("multi-user.target")
|
||||||
$machine->waitForUnit('vault.service');
|
machine.wait_for_unit("vault.service")
|
||||||
$machine->waitForOpenPort(8200);
|
machine.wait_for_open_port(8200)
|
||||||
$machine->succeed('vault operator init');
|
machine.succeed("vault operator init")
|
||||||
$machine->succeed('vault status | grep Sealed | grep true');
|
machine.succeed("vault status | grep Sealed | grep true")
|
||||||
'';
|
'';
|
||||||
})
|
})
|
||||||
|
Loading…
x
Reference in New Issue
Block a user