2016-06-06 04:52:20 +08:00
|
|
|
variable "cluster_name" {
|
|
|
|
default = "example"
|
|
|
|
}
|
|
|
|
|
2017-12-05 20:48:47 +08:00
|
|
|
variable "number_of_bastions" {
|
|
|
|
default = 1
|
|
|
|
}
|
|
|
|
|
2016-06-06 04:52:20 +08:00
|
|
|
variable "number_of_k8s_masters" {
|
|
|
|
default = 2
|
|
|
|
}
|
|
|
|
|
2017-09-27 17:59:09 +08:00
|
|
|
variable "number_of_k8s_masters_no_etcd" {
|
|
|
|
default = 2
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "number_of_etcd" {
|
|
|
|
default = 2
|
|
|
|
}
|
|
|
|
|
2016-10-26 22:56:15 +08:00
|
|
|
variable "number_of_k8s_masters_no_floating_ip" {
|
|
|
|
default = 2
|
|
|
|
}
|
|
|
|
|
2017-09-27 17:59:09 +08:00
|
|
|
variable "number_of_k8s_masters_no_floating_ip_no_etcd" {
|
|
|
|
default = 2
|
|
|
|
}
|
|
|
|
|
2016-06-06 04:52:20 +08:00
|
|
|
variable "number_of_k8s_nodes" {
|
|
|
|
default = 1
|
|
|
|
}
|
|
|
|
|
2016-10-26 22:56:15 +08:00
|
|
|
variable "number_of_k8s_nodes_no_floating_ip" {
|
|
|
|
default = 1
|
|
|
|
}
|
|
|
|
|
2016-11-11 11:59:46 +08:00
|
|
|
variable "number_of_gfs_nodes_no_floating_ip" {
|
|
|
|
default = 0
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "gfs_volume_size_in_gb" {
|
|
|
|
default = 75
|
|
|
|
}
|
|
|
|
|
2016-06-06 04:52:20 +08:00
|
|
|
variable "public_key_path" {
|
|
|
|
description = "The path of the ssh pub key"
|
|
|
|
default = "~/.ssh/id_rsa.pub"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "image" {
|
|
|
|
description = "the image to use"
|
|
|
|
default = "ubuntu-14.04"
|
|
|
|
}
|
|
|
|
|
2016-11-11 11:59:46 +08:00
|
|
|
variable "image_gfs" {
|
|
|
|
description = "Glance image to use for GlusterFS"
|
|
|
|
default = "ubuntu-16.04"
|
|
|
|
}
|
|
|
|
|
2016-06-06 04:52:20 +08:00
|
|
|
variable "ssh_user" {
|
|
|
|
description = "used to fill out tags for ansible inventory"
|
|
|
|
default = "ubuntu"
|
|
|
|
}
|
|
|
|
|
2016-11-11 11:59:46 +08:00
|
|
|
variable "ssh_user_gfs" {
|
|
|
|
description = "used to fill out tags for ansible inventory"
|
|
|
|
default = "ubuntu"
|
|
|
|
}
|
|
|
|
|
2017-12-05 20:48:47 +08:00
|
|
|
variable "flavor_bastion" {
|
|
|
|
description = "Use 'nova flavor-list' command to see what your OpenStack instance uses for IDs"
|
|
|
|
default = 3
|
|
|
|
}
|
|
|
|
|
2016-06-06 04:52:20 +08:00
|
|
|
variable "flavor_k8s_master" {
|
2017-12-05 20:48:47 +08:00
|
|
|
description = "Use 'nova flavor-list' command to see what your OpenStack instance uses for IDs"
|
2016-06-06 04:52:20 +08:00
|
|
|
default = 3
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "flavor_k8s_node" {
|
2017-12-05 20:48:47 +08:00
|
|
|
description = "Use 'nova flavor-list' command to see what your OpenStack instance uses for IDs"
|
2016-06-06 04:52:20 +08:00
|
|
|
default = 3
|
|
|
|
}
|
|
|
|
|
2017-09-27 17:59:09 +08:00
|
|
|
variable "flavor_etcd" {
|
2017-12-05 20:48:47 +08:00
|
|
|
description = "Use 'nova flavor-list' command to see what your OpenStack instance uses for IDs"
|
2017-09-27 17:59:09 +08:00
|
|
|
default = 3
|
|
|
|
}
|
|
|
|
|
2016-11-11 11:59:46 +08:00
|
|
|
variable "flavor_gfs_node" {
|
2017-12-05 20:48:47 +08:00
|
|
|
description = "Use 'nova flavor-list' command to see what your OpenStack instance uses for IDs"
|
2016-11-11 11:59:46 +08:00
|
|
|
default = 3
|
|
|
|
}
|
2016-06-06 04:52:20 +08:00
|
|
|
|
|
|
|
variable "network_name" {
|
|
|
|
description = "name of the internal network to use"
|
|
|
|
default = "internal"
|
|
|
|
}
|
|
|
|
|
2017-12-05 20:48:47 +08:00
|
|
|
variable "dns_nameservers"{
|
|
|
|
description = "An array of DNS name server names used by hosts in this subnet."
|
|
|
|
type = "list"
|
|
|
|
default = []
|
|
|
|
}
|
|
|
|
|
2016-06-06 04:52:20 +08:00
|
|
|
variable "floatingip_pool" {
|
|
|
|
description = "name of the floating ip pool to use"
|
|
|
|
default = "external"
|
|
|
|
}
|
|
|
|
|
2017-12-05 20:48:47 +08:00
|
|
|
variable "external_net" {
|
|
|
|
description = "uuid of the external/public network"
|
|
|
|
}
|
|
|
|
|
2016-06-06 04:52:20 +08:00
|
|
|
variable "username" {
|
|
|
|
description = "Your openstack username"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "password" {
|
|
|
|
description = "Your openstack password"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "tenant" {
|
|
|
|
description = "Your openstack tenant/project"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "auth_url" {
|
|
|
|
description = "Your openstack auth URL"
|
|
|
|
}
|