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.

101 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. sensitive = true
  19. }
  20. variable "vsphere_server" {}
  21. variable "ssh_public_keys" {
  22. description = "List of public SSH keys which are injected into the VMs."
  23. type = list(string)
  24. }
  25. variable "template_name" {}
  26. # Optional variables (ones where reasonable defaults exist)
  27. variable "vapp" {
  28. default = false
  29. }
  30. variable "interface_name" {
  31. default = "ens192"
  32. }
  33. variable "folder" {
  34. default = ""
  35. }
  36. variable "prefix" {
  37. default = "k8s"
  38. }
  39. variable "inventory_file" {
  40. default = "inventory.ini"
  41. }
  42. variable "dns_primary" {
  43. default = "8.8.4.4"
  44. }
  45. variable "dns_secondary" {
  46. default = "8.8.8.8"
  47. }
  48. variable "firmware" {
  49. default = "bios"
  50. }
  51. variable "hardware_version" {
  52. default = "15"
  53. }
  54. ## Master ##
  55. variable "master_cores" {
  56. default = 4
  57. }
  58. variable "master_memory" {
  59. default = 4096
  60. }
  61. variable "master_disk_size" {
  62. default = "20"
  63. }
  64. ## Worker ##
  65. variable "worker_cores" {
  66. default = 16
  67. }
  68. variable "worker_memory" {
  69. default = 8192
  70. }
  71. variable "worker_disk_size" {
  72. default = "100"
  73. }