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
9186a7f2
Commit
9186a7f2
authored
Aug 30, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/amazon: output DNS name if debug mode
parent
57f18545
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
15 additions
and
0 deletions
+15
-0
CHANGELOG.md
CHANGELOG.md
+1
-0
builder/amazon/common/step_run_source_instance.go
builder/amazon/common/step_run_source_instance.go
+12
-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.
CHANGELOG.md
View file @
9186a7f2
...
...
@@ -4,6 +4,7 @@ IMPROVEMENTS:
*
builder/amazon: In
`-debug`
mode, the keypair used will be saved to
the current directory so you can access the machine. [GH-373]
*
builder/amazon: In
`-debug`
mode, the DNS is outputted.
BUG FIXES:
...
...
builder/amazon/common/step_run_source_instance.go
View file @
9186a7f2
...
...
@@ -10,6 +10,7 @@ import (
)
type
StepRunSourceInstance
struct
{
Debug
bool
ExpectedRootDevice
string
InstanceType
string
UserData
string
...
...
@@ -100,6 +101,17 @@ func (s *StepRunSourceInstance) Run(state map[string]interface{}) multistep.Step
}
s
.
instance
=
latestInstance
.
(
*
ec2
.
Instance
)
if
s
.
Debug
{
if
s
.
instance
.
DNSName
!=
""
{
ui
.
Message
(
fmt
.
Sprintf
(
"Public DNS: %s"
,
s
.
instance
.
DNSName
))
}
if
s
.
instance
.
PrivateIpAddress
!=
""
{
ui
.
Message
(
fmt
.
Sprintf
(
"Private IP: %s"
,
s
.
instance
.
PrivateIpAddress
))
}
}
state
[
"instance"
]
=
s
.
instance
return
multistep
.
ActionContinue
...
...
builder/amazon/ebs/builder.go
View file @
9186a7f2
...
...
@@ -91,6 +91,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
VpcId
:
b
.
config
.
VpcId
,
},
&
awscommon
.
StepRunSourceInstance
{
Debug
:
b
.
config
.
PackerDebug
,
ExpectedRootDevice
:
"ebs"
,
InstanceType
:
b
.
config
.
InstanceType
,
UserData
:
b
.
config
.
UserData
,
...
...
builder/amazon/instance/builder.go
View file @
9186a7f2
...
...
@@ -194,6 +194,7 @@ func (b *Builder) Run(ui packer.Ui, hook packer.Hook, cache packer.Cache) (packe
VpcId
:
b
.
config
.
VpcId
,
},
&
awscommon
.
StepRunSourceInstance
{
Debug
:
b
.
config
.
PackerDebug
,
ExpectedRootDevice
:
"instance-store"
,
InstanceType
:
b
.
config
.
InstanceType
,
IamInstanceProfile
:
b
.
config
.
IamInstanceProfile
,
...
...
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