Commit 35a947e3 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/amazonebs: Add provisioning step

parent d00abbd5
...@@ -72,6 +72,8 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook) packer.Artifact { ...@@ -72,6 +72,8 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook) packer.Artifact {
steps := []Step{ steps := []Step{
&stepKeyPair{}, &stepKeyPair{},
&stepRunSourceInstance{}, &stepRunSourceInstance{},
&stepConnectSSH{},
&stepProvision{},
&stepStopInstance{}, &stepStopInstance{},
&stepCreateAMI{}, &stepCreateAMI{},
} }
......
package amazonebs
import (
"github.com/mitchellh/packer/packer"
"log"
)
type stepProvision struct{}
func (*stepProvision) Run(state map[string]interface{}) StepAction {
comm := state["communicator"].(packer.Communicator)
hook := state["hook"].(packer.Hook)
ui := state["ui"].(packer.Ui)
log.Println("Running the provision hook")
hook.Run(packer.HookProvision, ui, comm, nil)
return StepContinue
}
func (*stepProvision) Cleanup(map[string]interface{}) {}
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment