forked from hashicorp/packer-plugin-vsphere
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
30 lines (26 loc) · 992 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package main
import (
"fmt"
"os"
"github.com/hashicorp/packer-plugin-sdk/plugin"
"github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/clone"
"github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/iso"
"github.com/hashicorp/packer-plugin-vsphere/builder/vsphere/supervisor"
"github.com/hashicorp/packer-plugin-vsphere/post-processor/vsphere"
vsphere_template "github.com/hashicorp/packer-plugin-vsphere/post-processor/vsphere-template"
"github.com/hashicorp/packer-plugin-vsphere/version"
)
func main() {
pps := plugin.NewSet()
pps.RegisterBuilder("iso", new(iso.Builder))
pps.RegisterBuilder("clone", new(clone.Builder))
pps.RegisterBuilder("supervisor", new(supervisor.Builder))
pps.RegisterPostProcessor(plugin.DEFAULT_NAME, new(vsphere.PostProcessor))
pps.RegisterPostProcessor("template", new(vsphere_template.PostProcessor))
pps.SetVersion(version.PluginVersion)
err := pps.Run()
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
}