Use ensureDBOwnership instead of ensurePermissions
This commit is contained in:
parent
b243ca4445
commit
e7b4c81f29
3 changed files with 5 additions and 11 deletions
|
@ -77,7 +77,7 @@
|
||||||
ensureDatabases = [ "grafana" ];
|
ensureDatabases = [ "grafana" ];
|
||||||
ensureUsers = [{
|
ensureUsers = [{
|
||||||
name = "grafana";
|
name = "grafana";
|
||||||
ensurePermissions = { "DATABASE grafana" = "ALL PRIVILEGES"; };
|
ensureDBOwnership = true;
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
@ -79,21 +79,15 @@
|
||||||
ensureUsers = [
|
ensureUsers = [
|
||||||
{
|
{
|
||||||
name = "matrix_appservice_slack";
|
name = "matrix_appservice_slack";
|
||||||
ensurePermissions = {
|
ensureDBOwnership = true;
|
||||||
"DATABASE matrix_appservice_slack" = "ALL PRIVILEGES";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "mautrix_whatsapp";
|
name = "mautrix_whatsapp";
|
||||||
ensurePermissions = {
|
ensureDBOwnership = true;
|
||||||
"DATABASE mautrix_whatsapp" = "ALL PRIVILEGES";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
name = "matrix-synapse";
|
name = "matrix-synapse";
|
||||||
ensurePermissions = {
|
ensureDBOwnership = true;
|
||||||
"DATABASE \"matrix-synapse\"" = "ALL PRIVILEGES";
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
ensureDatabases = [ "nextcloud" ];
|
ensureDatabases = [ "nextcloud" ];
|
||||||
ensureUsers = [{
|
ensureUsers = [{
|
||||||
name = "nextcloud";
|
name = "nextcloud";
|
||||||
ensurePermissions = { "DATABASE nextcloud" = "ALL PRIVILEGES"; };
|
ensureDBOwnership = true;
|
||||||
}];
|
}];
|
||||||
};
|
};
|
||||||
redis.servers.nextcloud = {
|
redis.servers.nextcloud = {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue