Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #required variables
- variable "proxmox_host" {
- type = string
- default = "10.0.2.14:8006"
- }
- variable "proxmox_node" {
- type = string
- default = "pve"
- }
- variable "proxmox_api_user" {
- type = string
- default = "infrauser@pam"
- }
- variable "proxmox_api_token_name" {
- type = string
- default = "infra_token"
- }
- variable "proxmox_api_token" {
- type = string
- default = "xxxxxxxxxxxx-xxxxxxxxxxx-xxxxxxxxxxx"
- }
- variable "iso" {
- type = string
- default = "ubuntu-20.04.1-legacy-server-amd64.iso"
- }
- variable "iso_checksum" {
- type = string
- default = "sha256:f11bda2f2caed8f420802b59f382c25160b114ccc665dbac9c5046e7fceaced2"
- }
- #other/optional variables
- variable "template_name" {
- type = string
- default = "ubuntu-20-04-legacy-LTS-{{ isotime \"2006-01-02-T15-04-05\" }}-UTC"
- }
- variable "template_description" {
- type = string
- default = "Ubuntu 20.04.1 Legacy (focal) x86_64, generated by packer on {{ isotime \"2006-01-02-T15-04-05\" }}-UTC"
- }
- variable "ssh_info" {
- type = map(string)
- default = {
- "username" = "packer"
- "fullname" = "packer"
- "password" = "packer"
- }
- }
- // variable "template_ssh_key_output_folder"{
- // type = string
- // default = "../output/ssh_keys"
- // }
- // variable "template_ssh_key_name"{
- // type = string
- // default = "id_ed25519_ubuntu_packer"
- // }
- variable "hostname" {
- type = string
- default = "ubuntu-20-04-1-cloudinit"
- }
- variable "vmid" {
- type = number
- default = 4001
- }
- variable "locale" {
- type = string
- default = "en_US"
- }
- variable "cores" {
- type = number
- default = 2
- }
- variable "sockets" {
- type = number
- default = 1
- }
- variable "memory" {
- type = number
- default = 2048
- }
- variable "disk_size" {
- type = string
- default = "64G"
- }
- variable "datastore" {
- type = string
- default = "local-main"
- }
- variable "datastore_type" {
- type = string
- default = "directory"
- }
- variable "preseed_file" {
- type = string
- default = "preseed.cfg"
- }
- variable "ansible_play" {
- type = string
- default = "packer-ubuntu-20-04"
- }
- variable "bridge_name" {
- type = string
- default = "vmbr0"
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement