Skip to content
Snippets Groups Projects
variables.pkr.hcl 1.09 KiB
Newer Older
Chris King's avatar
Chris King committed
variable "root_ssh_key" {
  type = string
  description = "The root key to use for ssh"
}

variable "image_name" {
  type        = string
  default     = "cluster-image"
  description = "Name of the image in openstack"
}

variable "image_date_suffix" {
  type        = bool
  default     = false
  description = "Append a date to the image name (in YYYYMMDDHHMMSS format)"
}

variable "source_image" {
  type        = string
  description = "The name of the source image to use"
}

variable "flavor" {
  type        = string
  description = "The name of the flavor to use"
}

variable "ssh_username" {
  type = string
  default = "centos"
  description = "The default username to use for SSH"
}

variable "floating_ip_network" {
  type = string
  description = "floating ip network to use with (temporary) ip assignmnet to a vm"
}

variable "networks" {
  type = list(string)
  description = "List of network UUIDs to assign to the network"
}

variable "security_groups" {
  type = list(string)
  default = []
  description = "A list of security groups to add - you should make sure ssh access is open to the machine"
}