Select Git revision
      
  variables.tf
  variables.tf  2.10 KiB 
variable "type" {
	description = "Which software to setup"
	default = "hadoop"
}
variable "n" {
	description = "Number of instances"
	default = 2
}
variable "master_hostname" {
	description = "Master hostname"
	default = "master"
}
variable "node_hostname" {
	description = "Node hostnames prefix"
	default = "node"
}
variable "domain" {
	description = "Local domain name"
	default = "terra"
}
variable "flavor" {
	description = "Machine sizing flavor"
	default = "standard.medium"
}
variable "floating_ip" {
  type = string
}
variable "image_id" {
	description = "Image id (override other image search values)"
	default = null
}
variable "image_name" {
	description = "Image search name"
	default = "debian-9-x86_64_hadoop"
}
variable "image_owner" {
	description = "Image search owner"
	default = "85c8a74440e94d4b91d0dc067308cb64" # meta-hadoop
}
variable "image_visibility" {
	description = "Image search visibility"
	default = "public"
}
variable "image_user" {
	description = "SSH user"
	default = "debian"
}
variable "local_network" {
	description = "Local network name"
	default = "auto_allocated_network"
}
variable "local_network_id" {
	description = "Local network ID (overrides local network)"
	default = null
}
variable "security_admin_cidr" {	description = "Admin networks (ssh only)"
	type = set(string)
	default = []
}
variable "security_trusted_cidr" {
	description = "Trusted networks (all, ssh included)"
	type = set(string)
	default = [
		"78.128.128.0/17", # CESNET
		"116.216.0.0/15",  # UNOB, JČU
		"146.102.0.0/16",  # VŠE
		"147.32.0.0/15",   # ČVUT, VSCHT
		"147.228.0.0/14",  # ZČU, VUT, TUL, AVČR
		"147.251.0.0/16",  # MUNI
		"158.194.0.0/16",  # UPOL
		"158.196.0.0/16",  # VŠB
		"193.84.32.0/20",  # ČZU
		"193.84.192.0/19", # SLU
		"195.113.0.0/16",  # CESNET
		"195.178.64.0/19", # CESNET
		"2001:718::/32",   # CESNET
	]
}
variable "ssh" {
	description = "SSH key name"
	default = "openstack"
}
variable "volumes" {
	description = "Number of data volumes per node (zero means system disk)"
	default = 2
}
variable "volume_size" {
	description = "Size of each data volume (GB)"
	default = 125
}