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.

89 lines
1.2 KiB

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