Commit d166433d authored by Mitchell Hashimoto's avatar Mitchell Hashimoto

builder/amazon/chroot: rename to builder-amazon-chroot

parent b645586d
...@@ -69,7 +69,9 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe ...@@ -69,7 +69,9 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
state["ui"] = ui state["ui"] = ui
// Build the steps // Build the steps
steps := []multistep.Step{} steps := []multistep.Step{
&StepCheckEC2{},
}
// Run! // Run!
if b.config.PackerDebug { if b.config.PackerDebug {
......
package chroot
import (
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)
type StepCheckEC2 struct{}
func (s *StepCheckEC2) Run(state map[string]interface{}) multistep.StepAction {
ui := state["ui"].(packer.Ui)
ui.Say("Verifying we're on an EC2 instance...")
return multistep.ActionContinue
}
func (s *StepCheckEC2) Cleanup(map[string]interface{}) {}
...@@ -20,6 +20,7 @@ const defaultConfig = ` ...@@ -20,6 +20,7 @@ const defaultConfig = `
"builders": { "builders": {
"amazon-ebs": "packer-builder-amazon-ebs", "amazon-ebs": "packer-builder-amazon-ebs",
"amazon-chroot": "packer-builder-amazon-chroot",
"amazon-instance": "packer-builder-amazon-instance", "amazon-instance": "packer-builder-amazon-instance",
"digitalocean": "packer-builder-digitalocean", "digitalocean": "packer-builder-digitalocean",
"virtualbox": "packer-builder-virtualbox", "virtualbox": "packer-builder-virtualbox",
......
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