Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
packer
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kristopher Ruzic
packer
Commits
d166433d
Commit
d166433d
authored
Jul 29, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/amazon/chroot: rename to builder-amazon-chroot
parent
b645586d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
1 deletion
+20
-1
builder/amazon/chroot/builder.go
builder/amazon/chroot/builder.go
+3
-1
builder/amazon/chroot/step_check_ec2.go
builder/amazon/chroot/step_check_ec2.go
+16
-0
config.go
config.go
+1
-0
plugin/builder-amazon-chroot/main.go
plugin/builder-amazon-chroot/main.go
+0
-0
No files found.
builder/amazon/chroot/builder.go
View file @
d166433d
...
...
@@ -69,7 +69,9 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
state
[
"ui"
]
=
ui
// Build the steps
steps
:=
[]
multistep
.
Step
{}
steps
:=
[]
multistep
.
Step
{
&
StepCheckEC2
{},
}
// Run!
if
b
.
config
.
PackerDebug
{
...
...
builder/amazon/chroot/step_check_ec2.go
0 → 100644
View file @
d166433d
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
{})
{}
config.go
View file @
d166433d
...
...
@@ -20,6 +20,7 @@ const defaultConfig = `
"builders": {
"amazon-ebs": "packer-builder-amazon-ebs",
"amazon-chroot": "packer-builder-amazon-chroot",
"amazon-instance": "packer-builder-amazon-instance",
"digitalocean": "packer-builder-digitalocean",
"virtualbox": "packer-builder-virtualbox",
...
...
plugin/builder-amazon-
ebs-
chroot/main.go
→
plugin/builder-amazon-chroot/main.go
View file @
d166433d
File moved
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment