Commit ca39d236 authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/vmware: Run the provisioner

parent c0e6fbd8
...@@ -56,6 +56,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook) packer.Artifact { ...@@ -56,6 +56,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook) packer.Artifact {
&stepRun{}, &stepRun{},
&stepTypeBootCommand{}, &stepTypeBootCommand{},
&stepWaitForSSH{}, &stepWaitForSSH{},
&stepProvision{},
} }
// Setup the state bag // Setup the state bag
......
package vmware
import (
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
"log"
)
type stepProvision struct{}
func (*stepProvision) Run(state map[string]interface{}) multistep.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 multistep.ActionContinue
}
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