55 lines
2.7 KiB
Terraform
55 lines
2.7 KiB
Terraform
# =============================================================================
|
|
# locals.tf — все настраиваемые значения модуля CRUD (PG + Lucee + Flask)
|
|
# Никакого хардкода в ресурсах — всё здесь.
|
|
# =============================================================================
|
|
|
|
locals {
|
|
# ─── PostgreSQL ──────────────────────────────────────────────────────────
|
|
pg_resource_name = "pglucee001"
|
|
pg_cpu = 500
|
|
pg_memory = 512
|
|
pg_replicas = 1
|
|
pg_disk = 10
|
|
pg_version = "17"
|
|
pg_retain = 14
|
|
pg_schedule = "0 0 * * *"
|
|
pg_timeout = "11m"
|
|
|
|
# ─── PostgreSQL User ─────────────────────────────────────────────────────
|
|
pg_username = "user4crudpg"
|
|
pg_role = "ddl_user"
|
|
pg_db_name = "db4crudpg"
|
|
|
|
# ─── Lucee ───────────────────────────────────────────────────────────────
|
|
lucee_git_revision = "94d6677"
|
|
lucee_resource_name = "luceeresource"
|
|
lucee_domain = "tflucee"
|
|
lucee_version = "5.4"
|
|
lucee_git_path = "https://gitea.services.ngcloud.ru/Nail/tfluceecrud.git"
|
|
lucee_cpu = 300
|
|
lucee_memory = 512
|
|
lucee_replicas = 1
|
|
|
|
# ─── Таблица CRUD ────────────────────────────────────────────────────────
|
|
crud_table_name = "crud_items"
|
|
|
|
# ─── Flask ───────────────────────────────────────────────────────────────
|
|
flask_git_revision = "9c14f70"
|
|
flask_resource_name = "flaskcrud"
|
|
flask_domain = "tfflask"
|
|
flask_git_path = "https://gitea.services.ngcloud.ru/Nail/tfflaskcrud.git"
|
|
flask_cpu = 300
|
|
flask_memory = 512
|
|
flask_replicas = 1
|
|
|
|
# ─── JDBC / БД ───────────────────────────────────────────────────────────
|
|
jdbc_class = "org.postgresql.Driver"
|
|
jdbc_bundle_name = "org.postgresql.jdbc"
|
|
jdbc_bundle_version = "42.6.0"
|
|
jdbc_conn_limit = "5"
|
|
jdbc_live_timeout = "15"
|
|
jdbc_validate = "false"
|
|
pg_port = "5432"
|
|
pg_ssl_mode = "require"
|
|
}
|