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
d3ed1691
Commit
d3ed1691
authored
Jun 29, 2015
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #2351 from mitchellh/f-winrm-debug
builder/amazon: output WinRM password for debug mode [GH-2336]
parents
5c82ac28
b315e470
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
0 deletions
+10
-0
builder/amazon/common/step_get_password.go
builder/amazon/common/step_get_password.go
+8
-0
builder/amazon/ebs/builder.go
builder/amazon/ebs/builder.go
+1
-0
builder/amazon/instance/builder.go
builder/amazon/instance/builder.go
+1
-0
No files found.
builder/amazon/common/step_get_password.go
View file @
d3ed1691
...
...
@@ -19,6 +19,7 @@ import (
// StepGetPassword reads the password from a Windows server and sets it
// on the WinRM config.
type
StepGetPassword
struct
{
Debug
bool
Comm
*
communicator
.
Config
Timeout
time
.
Duration
}
...
...
@@ -85,6 +86,13 @@ WaitLoop:
}
}
}
// In debug-mode, we output the password
if
s
.
Debug
{
ui
.
Message
(
fmt
.
Sprintf
(
"Password (since debug is enabled): %s"
,
s
.
Comm
.
WinRMPassword
))
}
return
multistep
.
ActionContinue
}
...
...
builder/amazon/ebs/builder.go
View file @
d3ed1691
...
...
@@ -119,6 +119,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
Tags
:
b
.
config
.
RunTags
,
},
&
awscommon
.
StepGetPassword
{
Debug
:
b
.
config
.
PackerDebug
,
Comm
:
&
b
.
config
.
RunConfig
.
Comm
,
Timeout
:
b
.
config
.
WindowsPasswordTimeout
,
},
...
...
builder/amazon/instance/builder.go
View file @
d3ed1691
...
...
@@ -204,6 +204,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
Tags
:
b
.
config
.
RunTags
,
},
&
awscommon
.
StepGetPassword
{
Debug
:
b
.
config
.
PackerDebug
,
Comm
:
&
b
.
config
.
RunConfig
.
Comm
,
Timeout
:
b
.
config
.
WindowsPasswordTimeout
,
},
...
...
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