Advertisement
Guest User

Untitled

a guest
Jan 4th, 2022
60
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.22 KB | None | 0 0
  1. #required variables
  2. variable "proxmox_host" {
  3. type = string
  4. default = "10.0.2.14:8006"
  5. }
  6. variable "proxmox_node" {
  7. type = string
  8. default = "pve"
  9. }
  10. variable "proxmox_api_user" {
  11. type = string
  12. default = "infrauser@pam"
  13. }
  14. variable "proxmox_api_token_name" {
  15. type = string
  16. default = "infra_token"
  17. }
  18. variable "proxmox_api_token" {
  19. type = string
  20. default = "xxxxxxxxxxxx-xxxxxxxxxxx-xxxxxxxxxxx"
  21. }
  22. variable "iso" {
  23. type = string
  24. default = "ubuntu-20.04.1-legacy-server-amd64.iso"
  25. }
  26. variable "iso_checksum" {
  27. type = string
  28. default = "sha256:f11bda2f2caed8f420802b59f382c25160b114ccc665dbac9c5046e7fceaced2"
  29. }
  30.  
  31. #other/optional variables
  32. variable "template_name" {
  33. type = string
  34. default = "ubuntu-20-04-legacy-LTS-{{ isotime \"2006-01-02-T15-04-05\" }}-UTC"
  35. }
  36. variable "template_description" {
  37. type = string
  38. default = "Ubuntu 20.04.1 Legacy (focal) x86_64, generated by packer on {{ isotime \"2006-01-02-T15-04-05\" }}-UTC"
  39. }
  40.  
  41. variable "ssh_info" {
  42. type = map(string)
  43. default = {
  44. "username" = "packer"
  45. "fullname" = "packer"
  46. "password" = "packer"
  47. }
  48. }
  49. // variable "template_ssh_key_output_folder"{
  50. // type = string
  51. // default = "../output/ssh_keys"
  52. // }
  53. // variable "template_ssh_key_name"{
  54. // type = string
  55. // default = "id_ed25519_ubuntu_packer"
  56. // }
  57.  
  58. variable "hostname" {
  59. type = string
  60. default = "ubuntu-20-04-1-cloudinit"
  61. }
  62. variable "vmid" {
  63. type = number
  64. default = 4001
  65. }
  66. variable "locale" {
  67. type = string
  68. default = "en_US"
  69. }
  70. variable "cores" {
  71. type = number
  72. default = 2
  73. }
  74. variable "sockets" {
  75. type = number
  76. default = 1
  77. }
  78. variable "memory" {
  79. type = number
  80. default = 2048
  81. }
  82. variable "disk_size" {
  83. type = string
  84. default = "64G"
  85. }
  86. variable "datastore" {
  87. type = string
  88. default = "local-main"
  89. }
  90. variable "datastore_type" {
  91. type = string
  92. default = "directory"
  93. }
  94.  
  95.  
  96. variable "preseed_file" {
  97. type = string
  98. default = "preseed.cfg"
  99. }
  100. variable "ansible_play" {
  101. type = string
  102. default = "packer-ubuntu-20-04"
  103. }
  104.  
  105. variable "bridge_name" {
  106. type = string
  107. default = "vmbr0"
  108. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement