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.

99 lines
1.4 KiB

  1. ## Global ##
  2. # Required variables
  3. variable "machines" {
  4. description = "Cluster machines"
  5. type = map(object({
  6. node_type = string
  7. ip = string
  8. netmask = string
  9. }))
  10. }
  11. variable "network" {}
  12. variable "gateway" {}
  13. variable "vsphere_datacenter" {}
  14. variable "vsphere_compute_cluster" {}
  15. variable "vsphere_datastore" {}
  16. variable "vsphere_user" {}
  17. variable "vsphere_password" {}
  18. variable "vsphere_server" {}
  19. variable "ssh_public_keys" {
  20. description = "List of public SSH keys which are injected into the VMs."
  21. type = list(string)
  22. }
  23. variable "template_name" {}
  24. # Optional variables (ones where reasonable defaults exist)
  25. variable "vapp" {
  26. default = false
  27. }
  28. variable "interface_name" {
  29. default = "ens192"
  30. }
  31. variable "folder" {
  32. default = ""
  33. }
  34. variable "prefix" {
  35. default = "k8s"
  36. }
  37. variable "inventory_file" {
  38. default = "inventory.ini"
  39. }
  40. variable "dns_primary" {
  41. default = "8.8.4.4"
  42. }
  43. variable "dns_secondary" {
  44. default = "8.8.8.8"
  45. }
  46. variable "firmware" {
  47. default = "bios"
  48. }
  49. variable "hardware_version" {
  50. default = "15"
  51. }
  52. ## Master ##
  53. variable "master_cores" {
  54. default = 4
  55. }
  56. variable "master_memory" {
  57. default = 4096
  58. }
  59. variable "master_disk_size" {
  60. default = "20"
  61. }
  62. ## Worker ##
  63. variable "worker_cores" {
  64. default = 16
  65. }
  66. variable "worker_memory" {
  67. default = 8192
  68. }
  69. variable "worker_disk_size" {
  70. default = "100"
  71. }