forked from hashicorp/packer-plugin-azure
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.go
31 lines (26 loc) · 930 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
31
// Copyright (c) HashiCorp, Inc.
// SPDX-License-Identifier: MPL-2.0
package main
import (
"fmt"
"os"
azurearm "github.com/hashicorp/packer-plugin-azure/builder/azure/arm"
azurechroot "github.com/hashicorp/packer-plugin-azure/builder/azure/chroot"
azuredtl "github.com/hashicorp/packer-plugin-azure/builder/azure/dtl"
azuredtlartifact "github.com/hashicorp/packer-plugin-azure/provisioner/azure-dtlartifact"
"github.com/hashicorp/packer-plugin-azure/version"
"github.com/hashicorp/packer-plugin-sdk/plugin"
)
func main() {
pps := plugin.NewSet()
pps.RegisterBuilder("arm", new(azurearm.Builder))
pps.RegisterBuilder("chroot", new(azurechroot.Builder))
pps.RegisterBuilder("dtl", new(azuredtl.Builder))
pps.RegisterProvisioner("dtlartifact", new(azuredtlartifact.Provisioner))
pps.SetVersion(version.AzurePluginVersion)
err := pps.Run()
if err != nil {
fmt.Fprintln(os.Stderr, err.Error())
os.Exit(1)
}
}