You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

129 lines
2.5 KiB

  1. variable "cluster_name" {
  2. default = "example"
  3. }
  4. variable "number_of_bastions" {
  5. default = 1
  6. }
  7. variable "number_of_k8s_masters" {
  8. default = 2
  9. }
  10. variable "number_of_k8s_masters_no_etcd" {
  11. default = 2
  12. }
  13. variable "number_of_etcd" {
  14. default = 2
  15. }
  16. variable "number_of_k8s_masters_no_floating_ip" {
  17. default = 2
  18. }
  19. variable "number_of_k8s_masters_no_floating_ip_no_etcd" {
  20. default = 2
  21. }
  22. variable "number_of_k8s_nodes" {
  23. default = 1
  24. }
  25. variable "number_of_k8s_nodes_no_floating_ip" {
  26. default = 1
  27. }
  28. variable "number_of_gfs_nodes_no_floating_ip" {
  29. default = 0
  30. }
  31. variable "gfs_volume_size_in_gb" {
  32. default = 75
  33. }
  34. variable "public_key_path" {
  35. description = "The path of the ssh pub key"
  36. default = "~/.ssh/id_rsa.pub"
  37. }
  38. variable "image" {
  39. description = "the image to use"
  40. default = "ubuntu-14.04"
  41. }
  42. variable "image_gfs" {
  43. description = "Glance image to use for GlusterFS"
  44. default = "ubuntu-16.04"
  45. }
  46. variable "ssh_user" {
  47. description = "used to fill out tags for ansible inventory"
  48. default = "ubuntu"
  49. }
  50. variable "ssh_user_gfs" {
  51. description = "used to fill out tags for ansible inventory"
  52. default = "ubuntu"
  53. }
  54. variable "flavor_bastion" {
  55. description = "Use 'nova flavor-list' command to see what your OpenStack instance uses for IDs"
  56. default = 3
  57. }
  58. variable "flavor_k8s_master" {
  59. description = "Use 'nova flavor-list' command to see what your OpenStack instance uses for IDs"
  60. default = 3
  61. }
  62. variable "flavor_k8s_node" {
  63. description = "Use 'nova flavor-list' command to see what your OpenStack instance uses for IDs"
  64. default = 3
  65. }
  66. variable "flavor_etcd" {
  67. description = "Use 'nova flavor-list' command to see what your OpenStack instance uses for IDs"
  68. default = 3
  69. }
  70. variable "flavor_gfs_node" {
  71. description = "Use 'nova flavor-list' command to see what your OpenStack instance uses for IDs"
  72. default = 3
  73. }
  74. variable "network_name" {
  75. description = "name of the internal network to use"
  76. default = "internal"
  77. }
  78. variable "dns_nameservers"{
  79. description = "An array of DNS name server names used by hosts in this subnet."
  80. type = "list"
  81. default = []
  82. }
  83. variable "floatingip_pool" {
  84. description = "name of the floating ip pool to use"
  85. default = "external"
  86. }
  87. variable "external_net" {
  88. description = "uuid of the external/public network"
  89. }
  90. variable "username" {
  91. description = "Your openstack username"
  92. }
  93. variable "password" {
  94. description = "Your openstack password"
  95. }
  96. variable "tenant" {
  97. description = "Your openstack tenant/project"
  98. }
  99. variable "auth_url" {
  100. description = "Your openstack auth URL"
  101. }