Added the packer init block to the local and netinstall centos example

This commit is contained in:
Daniel Koschützki 2021-04-14 11:04:38 +02:00 committed by Daniel Koschützki
parent 8a32e10dc3
commit da63294ed4
2 changed files with 19 additions and 1 deletions

View File

@ -1,3 +1,12 @@
packer {
required_plugins {
xenserver= {
version = "= v0.3.0-dev9"
source = "github.com/ddelnano/xenserver"
}
}
}
variable "remote_host" { variable "remote_host" {
type = string type = string
description = "The ip or fqdn of your XenServer. This will be pulled from the env var 'PKR_VAR_XAPI_HOST'" description = "The ip or fqdn of your XenServer. This will be pulled from the env var 'PKR_VAR_XAPI_HOST'"
@ -51,7 +60,7 @@ source "xenserver-iso" "centos8-local" {
remote_username = var.remote_username remote_username = var.remote_username
vm_name = "packer-centos8-local-${local.timestamp}" vm_name = "packer-centos8-local-${local.timestamp}"
vm_description = "Build started: ${local.timestamp}\n This was installed From the dvd" vm_description = "Build started: ${local.timestamp}\n This was installed from the dvd"
vm_memory = 4096 vm_memory = 4096
disk_size = 4096 disk_size = 4096

View File

@ -1,3 +1,12 @@
packer {
required_plugins {
xenserver= {
version = "= v0.3.0-dev9"
source = "github.com/ddelnano/xenserver"
}
}
}
variable "remote_host" { variable "remote_host" {
type = string type = string
description = "The ip or fqdn of your XenServer. This will be pulled from the env var 'PKR_VAR_XAPI_HOST'" description = "The ip or fqdn of your XenServer. This will be pulled from the env var 'PKR_VAR_XAPI_HOST'"