Files
MyMasters/data/Linux/variables.pkr.hcl
2024-10-20 20:38:22 +02:00

60 lines
1.0 KiB
HCL

packer {
required_version = ">= 1.7.4"
required_plugins {
windows-update = {
version = "0.14.0"
source = "github.com/rgl/windows-update"
}
amazon = {
source = "github.com/hashicorp/amazon"
version = "~> 1"
}
ansible = {
source = "github.com/hashicorp/ansible"
version = "~> 1"
}
vsphere = {
source = "github.com/hashicorp/vsphere"
version = "~> 1"
}
}
}
# Variables definition
variable "SCSI_Controller" {
type = string
default = "pvscsi"
}
variable "packer_svr_addr" {
type = string
default = "127.0.0.1"
}
variable "VMNAME" {
type = string
default = "BMaster-Template"
}
variable "ISODISK" {
type = string
default = ""
}
variable "BOOT_COMMAND" {
type = string
default = "lets boot"
}
variable "kickstart_path" {
type = string
default = "resp_file/centos"
}
variable "kickstart_file" {
type = string
default = "redhat.kix"
}