From da63294ed49b6d7db1cc89b80e09585d374b517e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Kosch=C3=BCtzki?= Date: Wed, 14 Apr 2021 11:04:38 +0200 Subject: [PATCH] Added the packer init block to the local and netinstall centos example --- examples/centos/centos8-local.pkr.hcl | 11 ++++++++++- examples/centos/centos8-netinstall.pkr.hcl | 9 +++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/examples/centos/centos8-local.pkr.hcl b/examples/centos/centos8-local.pkr.hcl index 5e508c8..2b7a81c 100644 --- a/examples/centos/centos8-local.pkr.hcl +++ b/examples/centos/centos8-local.pkr.hcl @@ -1,3 +1,12 @@ +packer { + required_plugins { + xenserver= { + version = "= v0.3.0-dev9" + source = "github.com/ddelnano/xenserver" + } + } +} + variable "remote_host" { type = string 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 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 disk_size = 4096 diff --git a/examples/centos/centos8-netinstall.pkr.hcl b/examples/centos/centos8-netinstall.pkr.hcl index cc54b20..b7fc950 100644 --- a/examples/centos/centos8-netinstall.pkr.hcl +++ b/examples/centos/centos8-netinstall.pkr.hcl @@ -1,3 +1,12 @@ +packer { + required_plugins { + xenserver= { + version = "= v0.3.0-dev9" + source = "github.com/ddelnano/xenserver" + } + } +} + variable "remote_host" { type = string description = "The ip or fqdn of your XenServer. This will be pulled from the env var 'PKR_VAR_XAPI_HOST'"