|
|
|
|
@ -1,16 +1,16 @@
|
|
|
|
|
package proxmoxclone
|
|
|
|
|
|
|
|
|
|
import (
|
|
|
|
|
"context"
|
|
|
|
|
"fmt"
|
|
|
|
|
"time"
|
|
|
|
|
|
|
|
|
|
proxmoxapi "github.com/Telmate/proxmox-api-go/proxmox"
|
|
|
|
|
"github.com/hashicorp/hcl/v2/hcldec"
|
|
|
|
|
"github.com/hashicorp/packer/builder/proxmox/common"
|
|
|
|
|
proxmox "github.com/hashicorp/packer/builder/proxmox/common"
|
|
|
|
|
"github.com/hashicorp/packer/helper/communicator"
|
|
|
|
|
"github.com/hashicorp/packer/helper/multistep"
|
|
|
|
|
"github.com/hashicorp/packer/packer"
|
|
|
|
|
|
|
|
|
|
"context"
|
|
|
|
|
"fmt"
|
|
|
|
|
"time"
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
// The unique id for the builder
|
|
|
|
|
@ -23,8 +23,6 @@ type Builder struct {
|
|
|
|
|
// Builder implements packer.Builder
|
|
|
|
|
var _ packer.Builder = &Builder{}
|
|
|
|
|
|
|
|
|
|
var pluginVersion = "1.0.0"
|
|
|
|
|
|
|
|
|
|
func (b *Builder) ConfigSpec() hcldec.ObjectSpec { return b.config.FlatMapstructure().HCL2Spec() }
|
|
|
|
|
|
|
|
|
|
func (b *Builder) Prepare(raws ...interface{}) ([]string, []string, error) {
|
|
|
|
|
|