70 lines
2.3 KiB
Terraform
70 lines
2.3 KiB
Terraform
|
|
# resource "nubes_lucee" "app1" {
|
|
# # Lucee-приложение, подключается к nubes_postgres.npg (наш Postgres в реалме var.realm).
|
|
# resource_name = "lucy_teststand_0"
|
|
# resource_realm = nubes_postgres.npg.resource_realm
|
|
# domain = "web-test-stand"
|
|
|
|
# git_path = "https://gitea-naeel.giteak8s.services.ngcloud.ru/naeel/testlucee"
|
|
|
|
# json_env = jsonencode({
|
|
# # Настройки Data Source 'testds' для Lucee (Application.cfc)
|
|
# testds_class = "org.postgresql.Driver"
|
|
# testds_bundleName = "org.postgresql.jdbc"
|
|
# testds_bundleVersion = "42.6.0"
|
|
# testds_connectionString = "jdbc:postgresql://${local.pg_host}:5432/${local.pg_database}?sslmode=require"
|
|
# testds_username = local.pg_username
|
|
# testds_password = local.pg_password
|
|
# testds_connectionLimit = "5"
|
|
# testds_liveTimeout = "15"
|
|
# testds_validate = "false"
|
|
# })
|
|
|
|
# resource_c_p_u = 300
|
|
# resource_memory = 512
|
|
# resource_instances = 1
|
|
# app_version = "5.4"
|
|
|
|
# depends_on = [nubes_postgres.npg]
|
|
# }
|
|
|
|
# resource "nubes_nodejs" "app3" {
|
|
# # NodeJS — застрял при создании на тест-стенде (операция в ожидании).
|
|
# # Раскомментировать когда тест-стенд стабилен.
|
|
# resource_name = "node_01"
|
|
# resource_realm = nubes_postgres.npg.resource_realm
|
|
# domain = "node07"
|
|
# git_path = "https://gitea-naeel.giteak8s.services.ngcloud.ru/naeel/testnode.git"
|
|
# health_path = "/healthz"
|
|
# app_version = "23"
|
|
#
|
|
# json_env = jsonencode({
|
|
# PGHOST = local.pg_host
|
|
# PGPORT = "5432"
|
|
# PGUSER = local.pg_username
|
|
# PGPASSWORD = local.pg_password
|
|
# PGDATABASE = local.pg_database
|
|
# PGSSLMODE = "require"
|
|
# DATABASE_URL = format(
|
|
# "postgresql://%s:%s@%s:5432/%s?sslmode=require",
|
|
# local.pg_username,
|
|
# local.pg_password,
|
|
# local.pg_host,
|
|
# local.pg_database
|
|
# )
|
|
# })
|
|
#
|
|
# resource_c_p_u = 300
|
|
# resource_memory = 256
|
|
# resource_instances = 1
|
|
#
|
|
# depends_on = [nubes_postgres.npg]
|
|
# }
|
|
|
|
# output "pg_vault_secrets" {
|
|
# value = nubes_postgres.db2.vault_secrets
|
|
# sensitive = true
|
|
# }
|
|
|
|
|