CRUD: postgres_conf переведён на синтаксис map-fixed
Было (array-map-fixed): jsonencode([{ param_name = "log_connections", param_value = "" }]).
Стало (map-fixed): postgres_conf = { log_connections = "off" } — формат, который
принимают выпущенные провайдеры (nubes 1.1.0 / nubes-dev 2.1.0 / nubes-test 3.1.0).
Заодно выровнены пробелы в access_configuration (только форматирование, значения не менялись).
This commit is contained in:
+8
-8
@@ -13,10 +13,10 @@ resource "nubes_postgres" "main_pg" {
|
||||
}
|
||||
|
||||
access_configuration = {
|
||||
master_ip_space = "no-needed"
|
||||
master_access_list = jsonencode(["10.0.0.0/8"])
|
||||
slave_ip_space = "no-needed"
|
||||
slave_access_list = jsonencode([])
|
||||
master_ip_space = "no-needed"
|
||||
master_access_list = jsonencode(["10.0.0.0/8"])
|
||||
slave_ip_space = "no-needed"
|
||||
slave_access_list = jsonencode([])
|
||||
}
|
||||
|
||||
postgres_configuration = {
|
||||
@@ -26,10 +26,10 @@ resource "nubes_postgres" "main_pg" {
|
||||
pooler_slave = false
|
||||
}
|
||||
|
||||
postgres_conf = jsonencode([{
|
||||
param_name = "log_connections"
|
||||
param_value = ""
|
||||
}])
|
||||
# Доп. настройки postgresql.conf (map-fixed): log_connections / log_disconnections, off | on
|
||||
postgres_conf = {
|
||||
log_connections = "off"
|
||||
}
|
||||
|
||||
backup_configuration = {
|
||||
s3_uid = var.s3_name
|
||||
|
||||
Reference in New Issue
Block a user