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
e7aa9b40
Commit
e7aa9b40
authored
Jun 11, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/virtualbox: add boot_command
parent
9e4a5a22
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
12 deletions
+12
-12
builder/virtualbox/builder.go
builder/virtualbox/builder.go
+10
-9
builder/virtualbox/builder_test.go
builder/virtualbox/builder_test.go
+0
-1
builder/virtualbox/step_create_disk.go
builder/virtualbox/step_create_disk.go
+1
-1
builder/virtualbox/step_run.go
builder/virtualbox/step_run.go
+1
-1
No files found.
builder/virtualbox/builder.go
View file @
e7aa9b40
...
...
@@ -23,15 +23,16 @@ type Builder struct {
}
type
config
struct
{
BootWait
time
.
Duration
``
GuestOSType
string
`mapstructure:"guest_os_type"`
ISOMD5
string
`mapstructure:"iso_md5"`
ISOUrl
string
`mapstructure:"iso_url"`
OutputDir
string
`mapstructure:"output_directory"`
SSHHostPortMin
uint
`mapstructure:"ssh_host_port_min"`
SSHHostPortMax
uint
`mapstructure:"ssh_host_port_max"`
SSHPort
uint
`mapstructure:"ssh_port"`
VMName
string
`mapstructure:"vm_name"`
BootCommand
[]
string
`mapstructure:"boot_command"`
BootWait
time
.
Duration
``
GuestOSType
string
`mapstructure:"guest_os_type"`
ISOMD5
string
`mapstructure:"iso_md5"`
ISOUrl
string
`mapstructure:"iso_url"`
OutputDir
string
`mapstructure:"output_directory"`
SSHHostPortMin
uint
`mapstructure:"ssh_host_port_min"`
SSHHostPortMax
uint
`mapstructure:"ssh_host_port_max"`
SSHPort
uint
`mapstructure:"ssh_port"`
VMName
string
`mapstructure:"vm_name"`
RawBootWait
string
`mapstructure:"boot_wait"`
}
...
...
builder/virtualbox/builder_test.go
View file @
e7aa9b40
...
...
@@ -169,4 +169,3 @@ func TestBuilderPrepare_SSHHostPort(t *testing.T) {
t
.
Fatalf
(
"should not have error: %s"
,
err
)
}
}
builder/virtualbox/step_create_disk.go
View file @
e7aa9b40
...
...
@@ -10,7 +10,7 @@ import (
// This step creates the virtual disk that will be used as the
// hard drive for the virtual machine.
type
stepCreateDisk
struct
{}
type
stepCreateDisk
struct
{}
func
(
s
*
stepCreateDisk
)
Run
(
state
map
[
string
]
interface
{})
multistep
.
StepAction
{
config
:=
state
[
"config"
]
.
(
*
config
)
...
...
builder/virtualbox/step_run.go
View file @
e7aa9b40
...
...
@@ -12,7 +12,7 @@ import (
// Uses:
//
// Produces:
type
stepRun
struct
{
type
stepRun
struct
{
vmName
string
}
...
...
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