Skip to content
Snippets Groups Projects
variables.tf 1.93 KiB
Newer Older
variable "user_name" {
  type        = string
  description = "user name for use with openstack"
}

variable "user_domain_name" {
  type        = string
  description = "the domain to use for the user"
}

variable "appcred_id" {
  type        = string
  description = "The app credential id. Get one from https://dashboard.cloud.rc.uab.edu/identity/application_credentials/"
}

variable "appcred_name" {
  type        = string
  description = "The name for your application credential"
}

variable "appcred_secret" {
  type        = string
  description = "The secret key for your application credential"
}

variable "ssh_keypair" {
  type        = string
  description = "ssh keypair name to use for authentication"
}

variable "base_image_name" {
  type        = string
Chris King's avatar
Chris King committed
  default     = "sles-15-sp2-x86_64"
  description = "base image to use for the cluster"
}

variable "base_image_visibility" {
  type        = string
  default     = "null"
  description = "visibility of base image"
  validation {
    condition     = can(regex("^(public|private|community|shared|null)$", var.base_image_visibility))
    error_message = "Must be one of \"public\", \"private\", \"community\", or \"shared\"."
  }
}

variable "osd_node_count" {
  type        = number
  default     = 3
  description = "amount of OSD nodes to create"
}
Chris King's avatar
Chris King committed

variable "public_network_dns" {
  type        = list(string)
  description = "dns to use for hosts"
Chris King's avatar
Chris King committed
}

Chris King's avatar
Chris King committed
variable "sles_rmt_host" {
Chris King's avatar
Chris King committed
  type        = string
Chris King's avatar
Chris King committed
  description = "host for rmt server"
Chris King's avatar
Chris King committed
}

Chris King's avatar
Chris King committed
variable "sles_rmt_fingerprint" {
Chris King's avatar
Chris King committed
  type        = string
Chris King's avatar
Chris King committed
  description = "fingerprint for rmt server"
Chris King's avatar
Chris King committed
}

variable "osd_disk_sizes" {
  type        = list(number)
  default     = [8, 8]
  description = "Amount and size of disks (in GB) to add to each OSD node. By default, add two 8GB nodes"
}

variable "app_instance_count" {
  type        = number
  default     = 0
  description = "Additional nodes to add for testing other features (rgw, rbd, etc)"
}