mirror of
https://github.com/lingble/twenty.git
synced 2025-11-05 07:07:55 +00:00
Updates for v20+ and misc terraform bug fixes. Also refactored to use terraform variables instead of locals which helps with readability and ease of use for new users. Terraform validation is currently passing:  Additionally added [terraform-docs](https://terraform-docs.io/) to generate a more helpful README for terraform specific configuration. Raw K8s manifests were updated with changes for v20+ as well. --------- Co-authored-by: Félix Malfait <felix.malfait@gmail.com>
125 lines
3.4 KiB
HCL
125 lines
3.4 KiB
HCL
######################
|
|
# Required Variables #
|
|
######################
|
|
variable "twentycrm_token_accessToken" {
|
|
type = string
|
|
description = "TwentyCRM access Token"
|
|
sensitive = true
|
|
}
|
|
|
|
variable "twentycrm_token_loginToken" {
|
|
type = string
|
|
description = "TwentyCRM login Token"
|
|
sensitive = true
|
|
}
|
|
|
|
variable "twentycrm_token_refreshToken" {
|
|
type = string
|
|
description = "TwentyCRM refresh Token"
|
|
sensitive = true
|
|
}
|
|
|
|
variable "twentycrm_token_fileToken" {
|
|
type = string
|
|
description = "TwentyCRM file Token"
|
|
sensitive = true
|
|
}
|
|
|
|
variable "twentycrm_pgdb_admin_password" {
|
|
type = string
|
|
description = "TwentyCRM password for postgres database."
|
|
sensitive = true
|
|
}
|
|
|
|
variable "twentycrm_app_hostname" {
|
|
type = string
|
|
description = "The protocol, DNS fully qualified hostname, and port used to access TwentyCRM in your environment. Ex: https://crm.example.com:443"
|
|
}
|
|
|
|
######################
|
|
# Optional Variables #
|
|
######################
|
|
variable "twentycrm_app_name" {
|
|
type = string
|
|
default = "twentycrm"
|
|
description = "A friendly name prefix to use for every component deployed."
|
|
}
|
|
|
|
variable "twentycrm_server_image" {
|
|
type = string
|
|
default = "twentycrm/twenty:latest"
|
|
description = "TwentyCRM server image for the server deployment. This defaults to latest. This value is also used for the workers image."
|
|
}
|
|
|
|
variable "twentycrm_db_image" {
|
|
type = string
|
|
default = "twentycrm/twenty-postgres:latest"
|
|
description = "TwentyCRM image for database deployment. This defaults to latest."
|
|
}
|
|
|
|
variable "twentycrm_server_replicas" {
|
|
type = number
|
|
default = 1
|
|
description = "Number of replicas for the TwentyCRM server deployment. This defaults to 1."
|
|
}
|
|
|
|
variable "twentycrm_worker_replicas" {
|
|
type = number
|
|
default = 1
|
|
description = "Number of replicas for the TwentyCRM worker deployment. This defaults to 1."
|
|
}
|
|
|
|
variable "twentycrm_db_replicas" {
|
|
type = number
|
|
default = 1
|
|
description = "Number of replicas for the TwentyCRM database deployment. This defaults to 1."
|
|
}
|
|
|
|
variable "twentycrm_server_data_mount_path" {
|
|
type = string
|
|
default = "/app/docker-data"
|
|
description = "TwentyCRM mount path for servers application data. Defaults to '/app/docker-data'."
|
|
}
|
|
|
|
variable "twentycrm_db_pv_path" {
|
|
type = string
|
|
default = ""
|
|
description = "Local path to use to store the physical volume if using local storage on nodes."
|
|
}
|
|
|
|
variable "twentycrm_server_pv_path" {
|
|
type = string
|
|
default = ""
|
|
description = "Local path to use to store the physical volume if using local storage on nodes."
|
|
}
|
|
|
|
variable "twentycrm_db_pv_capacity" {
|
|
type = string
|
|
default = "10Gi"
|
|
description = "Storage capacity provisioned for database persistent volume."
|
|
}
|
|
|
|
variable "twentycrm_db_pvc_requests" {
|
|
type = string
|
|
default = "10Gi"
|
|
description = "Storage capacity reservation for database persistent volume claim."
|
|
}
|
|
|
|
variable "twentycrm_server_pv_capacity" {
|
|
type = string
|
|
default = "10Gi"
|
|
description = "Storage capacity provisioned for server persistent volume."
|
|
}
|
|
|
|
variable "twentycrm_server_pvc_requests" {
|
|
type = string
|
|
default = "10Gi"
|
|
description = "Storage capacity reservation for server persistent volume claim."
|
|
}
|
|
|
|
variable "twentycrm_namespace" {
|
|
type = string
|
|
default = "twentycrm"
|
|
description = "Namespace for all TwentyCRM resources"
|
|
}
|