nixos: services: migrate to 'ensureDBOwnership'
All checks were successful
ci/woodpecker/push/check Pipeline was successful

`ensurePermissions` is deprecated, and doesn't work on PostgreSQL 15.
This commit is contained in:
Bruno BELANYI 2023-11-21 00:18:29 +01:00
parent 60d941b40b
commit b48d81451d
7 changed files with 7 additions and 11 deletions

View file

@ -41,9 +41,7 @@ in
ensureDatabases = [ "drone" ];
ensureUsers = [{
name = "drone";
ensurePermissions = {
"DATABASE drone" = "ALL PRIVILEGES";
};
ensureDBOwnership = true;
}];
};

View file

@ -57,7 +57,7 @@ in
ensureUsers = [
{
name = "nextcloud";
ensurePermissions."DATABASE nextcloud" = "ALL PRIVILEGES";
ensureDBOwnership = true;
}
];
};

View file

@ -131,7 +131,7 @@ in
ensureUsers = [
{
name = "paperless";
ensurePermissions."DATABASE paperless" = "ALL PRIVILEGES";
ensureDBOwnership = true;
}
];
};

View file

@ -39,7 +39,7 @@ in
ensureUsers = [
{
name = "quassel";
ensurePermissions."DATABASE quassel" = "ALL PRIVILEGES";
ensureDBOwnership = true;
}
];
# Insecure, I don't care.

View file

@ -65,7 +65,7 @@ in
ensureUsers = [
{
name = "tandoor_recipes";
ensurePermissions."DATABASE tandoor_recipes" = "ALL PRIVILEGES";
ensureDBOwnership = true;
}
];
};

View file

@ -109,7 +109,7 @@ in
ensureUsers = [
{
name = "vikunja";
ensurePermissions = { "DATABASE vikunja" = "ALL PRIVILEGES"; };
ensureDBOwnership = true;
}
];
};

View file

@ -48,9 +48,7 @@ in
ensureDatabases = [ "woodpecker" ];
ensureUsers = [{
name = "woodpecker";
ensurePermissions = {
"DATABASE woodpecker" = "ALL PRIVILEGES";
};
ensureDBOwnership = true;
}];
};