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
4576093c
Commit
4576093c
authored
Feb 24, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fmt
parent
9a622691
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
32 additions
and
33 deletions
+32
-33
builder/vmware/common/driver.go
builder/vmware/common/driver.go
+5
-5
builder/vmware/common/driver_workstation10.go
builder/vmware/common/driver_workstation10.go
+26
-27
provisioner/ansible-local/provisioner.go
provisioner/ansible-local/provisioner.go
+1
-1
No files found.
builder/vmware/common/driver.go
View file @
4576093c
...
...
@@ -75,8 +75,8 @@ func NewDriver(dconfig *DriverConfig, config *SSHConfig) (Driver, error) {
}
case
"linux"
:
drivers
=
[]
Driver
{
&
Workstation10Driver
{
Workstation9Driver
:
Workstation9Driver
{
&
Workstation10Driver
{
Workstation9Driver
:
Workstation9Driver
{
SSHConfig
:
config
,
},
},
...
...
builder/vmware/common/driver_workstation10.go
View file @
4576093c
package
common
import
(
"os/exec"
"bytes"
"regexp"
"fmt"
"log"
"strings"
"os/exec"
"regexp"
"runtime"
"strings"
)
// Workstation10Driver is a driver that can run VMware Workstation 10
...
...
@@ -32,14 +32,13 @@ func (d *Workstation10Driver) Clone(dst, src string) error {
func
(
d
*
Workstation10Driver
)
Verify
()
error
{
if
runtime
.
GOOS
!=
"linux"
{
return
fmt
.
Errorf
(
"can't used driver WS 10 not yet supported on
: %s"
,
runtime
.
GOOS
)
return
fmt
.
Errorf
(
"WS10 driver is only supported on Linux at the moment. Your OS
: %s"
,
runtime
.
GOOS
)
}
if
err
:=
d
.
Workstation9Driver
.
Verify
();
err
!=
nil
{
return
err
}
//TODO(pmyjavec) there is a better way to find this, how?
//the default will suffice for now.
vmxpath
:=
"/usr/lib/vmware/bin/vmware-vmx"
...
...
provisioner/ansible-local/provisioner.go
View file @
4576093c
...
...
@@ -233,7 +233,7 @@ func (p *Provisioner) executeAnsible(ui packer.Ui, comm packer.Communicator) err
}
if
cmd
.
ExitStatus
!=
0
{
if
cmd
.
ExitStatus
==
127
{
return
fmt
.
Errorf
(
"%s could not be found. Verify that it is available on the
\n
"
+
return
fmt
.
Errorf
(
"%s could not be found. Verify that it is available on the
\n
"
+
"PATH after connecting to the machine."
,
p
.
config
.
Command
)
}
...
...
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