terraform { required_version = ">= 1.0" required_providers { coder = { source = "coder/coder" version = ">= 0.12.4" } } } variable "jfrog_url" { type = string description = "JFrog instance URL. e.g. https://myartifactory.jfrog.io" # ensue the URL is HTTPS or HTTP validation { condition = can(regex("^(https|http)://", var.jfrog_url)) error_message = "jfrog_url must be a valid URL starting with either 'https://' or 'http://'" } } variable "jfrog_server_id" { type = string description = "The server ID of the JFrog instance for JFrog CLI configuration" default = "0" } variable "username_field" { type = string description = "The field to use for the artifactory username. i.e. Coder username or email." default = "username" validation { condition = can(regex("^(email|username)$", var.username_field)) error_message = "username_field must be either 'email' or 'username'" } } variable "external_auth_id" { type = string description = "JFrog external auth ID. Default: 'jfrog'" default = "jfrog" } variable "agent_id" { type = string description = "The ID of a Coder agent." } variable "configure_code_server" { type = bool description = "Set to true to configure code-server to use JFrog." default = false } variable "package_managers" { type = map(string) description = <