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
a0664c7e
Commit
a0664c7e
authored
Jun 07, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/vmware: Ability to set the guest OS type
parent
09db84eb
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
1 deletion
+6
-1
builder/vmware/builder.go
builder/vmware/builder.go
+5
-0
builder/vmware/step_create_vmx.go
builder/vmware/step_create_vmx.go
+1
-1
No files found.
builder/vmware/builder.go
View file @
a0664c7e
...
...
@@ -23,6 +23,7 @@ type Builder struct {
type
config
struct
{
DiskName
string
`mapstructure:"vmdk_name"`
GuestOSType
string
`mapstructure:"guest_os_type"`
ISOUrl
string
`mapstructure:"iso_url"`
VMName
string
`mapstructure:"vm_name"`
OutputDir
string
`mapstructure:"output_directory"`
...
...
@@ -55,6 +56,10 @@ func (b *Builder) Prepare(raw interface{}) (err error) {
b
.
config
.
DiskName
=
"disk"
}
if
b
.
config
.
GuestOSType
==
""
{
b
.
config
.
GuestOSType
=
"other"
}
if
b
.
config
.
VMName
==
""
{
b
.
config
.
VMName
=
"packer"
}
...
...
builder/vmware/step_create_vmx.go
View file @
a0664c7e
...
...
@@ -35,7 +35,7 @@ func (stepCreateVMX) Run(state map[string]interface{}) multistep.StepAction {
tplData
:=
&
vmxTemplateData
{
config
.
VMName
,
"ubuntu-64"
,
config
.
GuestOSType
,
config
.
DiskName
,
config
.
ISOUrl
,
}
...
...
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