cluster/services/attic: switch to locksmith secrets
This commit is contained in:
parent
a8041ec87f
commit
e73a340ff0
3 changed files with 8 additions and 6 deletions
Binary file not shown.
|
@ -22,15 +22,15 @@
|
|||
nodes = nodes.server;
|
||||
owner = "atticd";
|
||||
};
|
||||
s3Credentials = {
|
||||
nodes = nodes.server;
|
||||
owner = "atticd";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
garage = {
|
||||
keys.attic = { };
|
||||
keys.attic.locksmith = {
|
||||
nodes = config.services.attic.nodes.server;
|
||||
owner = "atticd";
|
||||
format = "aws";
|
||||
};
|
||||
buckets.attic = {
|
||||
allow.attic = [ "read" "write" ];
|
||||
};
|
||||
|
|
|
@ -11,6 +11,8 @@ in
|
|||
|
||||
links.atticServer.protocol = "http";
|
||||
|
||||
services.locksmith.waitForSecrets.atticd = [ "garage-attic" ];
|
||||
|
||||
services.atticd = {
|
||||
enable = true;
|
||||
|
||||
|
@ -60,7 +62,7 @@ in
|
|||
DynamicUser = lib.mkForce false;
|
||||
};
|
||||
environment = {
|
||||
AWS_SHARED_CREDENTIALS_FILE = secrets.s3Credentials.path;
|
||||
AWS_SHARED_CREDENTIALS_FILE = "/run/locksmith/garage-attic";
|
||||
PGPASSFILE = secrets.dbCredentials.path;
|
||||
};
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue