Reafacto OAuth2

Add roles mappings
Remove legacy groups
This commit is contained in:
2024-12-27 16:38:12 +01:00
parent fa2a69c61e
commit e8d1c4e86a
6 changed files with 87 additions and 47 deletions

View File

@@ -25,21 +25,25 @@ variable "backups" {
"use_barman" = false
}
type = object({
enable = optional(bool),
endpoint = optional(string),
key_id_key = optional(string),
restic_key = optional(string),
enable = optional(bool, false),
endpoint = optional(string, ""),
key_id_key = optional(string, "s3-id"),
restic_key = optional(string, "bck-password"),
schedule = optional(object({
db = optional(string),
})),
secret_key = optional(string),
secret_name = optional(string),
use_barman = optional(bool)
db = string,
}), { db = "30 3 * * *" }),
secret_key = optional(string, "s3-secret"),
secret_name = optional(string, "backup-settings"),
use_barman = optional(bool, false)
})
}
variable "images" {
type = object({
postgresql = optional(object({ registry = optional(string), repository = optional(string), tag = optional(number) })),
postgresql = optional(object({
registry = optional(string),
repository = optional(string),
tag = optional(number)
})),
})
default = {
"postgresql" = {