52 lines
825 B
HCL
52 lines
825 B
HCL
|
|
packer {
|
|
required_version = ">= 1.7.4"
|
|
required_plugins {
|
|
ansible = {
|
|
source = "github.com/hashicorp/ansible"
|
|
version = "~> 1"
|
|
}
|
|
proxmox = {
|
|
version = "~> 1"
|
|
source = "github.com/hashicorp/proxmox"
|
|
}
|
|
}
|
|
}
|
|
|
|
# Variables definition
|
|
variable "SCSI_Controller" {
|
|
type = string
|
|
}
|
|
|
|
variable "packer_svr_addr" {
|
|
type = string
|
|
}
|
|
|
|
variable "vm_name" {
|
|
type = string
|
|
default = "BMaster-Template"
|
|
}
|
|
|
|
variable "ISODISK" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "ISOHASH" {
|
|
type = string
|
|
default = ""
|
|
}
|
|
|
|
variable "BOOT_COMMAND" {
|
|
type = list(string)
|
|
}
|
|
|
|
variable "kickstart_path" {
|
|
type = string
|
|
default = "resp_file/centos"
|
|
}
|
|
|
|
variable "kickstart_file" {
|
|
type = string
|
|
default = "redhat.kix"
|
|
} |