mirror of
https://github.com/hashicorp/packer.git
synced 2026-05-28 04:35:38 -04:00
plugin: add the plugin
This commit is contained in:
parent
d5c0f13d8f
commit
a0b6928dce
1 changed files with 15 additions and 0 deletions
15
plugin/provisioner-shell-local/main.go
Normal file
15
plugin/provisioner-shell-local/main.go
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
package main
|
||||
|
||||
import (
|
||||
"github.com/mitchellh/packer/packer/plugin"
|
||||
"github.com/mitchellh/packer/provisioner/shell-local"
|
||||
)
|
||||
|
||||
func main() {
|
||||
server, err := plugin.Server()
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
server.RegisterProvisioner(new(shell.Provisioner))
|
||||
server.Serve()
|
||||
}
|
||||
Loading…
Reference in a new issue