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
b1bd71c1
Commit
b1bd71c1
authored
Jun 05, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/vmware: Create WaitForIP step
parent
bfbc3e37
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
0 deletions
+30
-0
builder/vmware/builder.go
builder/vmware/builder.go
+3
-0
builder/vmware/step_wait_for_ip.go
builder/vmware/step_wait_for_ip.go
+27
-0
No files found.
builder/vmware/builder.go
View file @
b1bd71c1
...
...
@@ -22,6 +22,8 @@ type config struct {
HTTPDir
string
`mapstructure:"http_directory"`
BootCommand
[]
string
`mapstructure:"boot_command"`
BootWait
uint
`mapstructure:"boot_wait"`
SSHUser
string
`mapstructure:"ssh_user"`
SSHPassword
string
`mapstructure:"ssh_password"`
}
func
(
b
*
Builder
)
Prepare
(
raw
interface
{})
(
err
error
)
{
...
...
@@ -53,6 +55,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook) packer.Artifact {
&
stepHTTPServer
{},
&
stepRun
{},
&
stepTypeBootCommand
{},
&
stepWaitForIP
{},
}
// Setup the state bag
...
...
builder/vmware/step_wait_for_ip.go
0 → 100644
View file @
b1bd71c1
package
vmware
import
(
"github.com/mitchellh/multistep"
"github.com/mitchellh/packer/packer"
)
// This step creates the virtual disks for the VM.
//
// Uses:
// config *config
// ui packer.Ui
//
// Produces:
// <nothing>
type
stepWaitForIP
struct
{}
func
(
stepWaitForIP
)
Run
(
state
map
[
string
]
interface
{})
multistep
.
StepAction
{
ui
:=
state
[
"ui"
]
.
(
packer
.
Ui
)
ui
.
Say
(
"Waiting for SSH to become available..."
)
select
{}
return
multistep
.
ActionContinue
}
func
(
stepWaitForIP
)
Cleanup
(
map
[
string
]
interface
{})
{}
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