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
0da1f2d8
Commit
0da1f2d8
authored
Apr 26, 2014
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
builder/googlecompute: template process instance name
parent
2f4e3a55
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
0 deletions
+4
-0
builder/googlecompute/config.go
builder/googlecompute/config.go
+1
-0
website/source/docs/builders/googlecompute.markdown
website/source/docs/builders/googlecompute.markdown
+3
-0
No files found.
builder/googlecompute/config.go
View file @
0da1f2d8
...
@@ -102,6 +102,7 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
...
@@ -102,6 +102,7 @@ func NewConfig(raws ...interface{}) (*Config, []string, error) {
"client_secrets_file"
:
&
c
.
ClientSecretsFile
,
"client_secrets_file"
:
&
c
.
ClientSecretsFile
,
"image_name"
:
&
c
.
ImageName
,
"image_name"
:
&
c
.
ImageName
,
"image_description"
:
&
c
.
ImageDescription
,
"image_description"
:
&
c
.
ImageDescription
,
"instance_name"
:
&
c
.
InstanceName
,
"machine_type"
:
&
c
.
MachineType
,
"machine_type"
:
&
c
.
MachineType
,
"network"
:
&
c
.
Network
,
"network"
:
&
c
.
Network
,
"passphrase"
:
&
c
.
Passphrase
,
"passphrase"
:
&
c
.
Passphrase
,
...
...
website/source/docs/builders/googlecompute.markdown
View file @
0da1f2d8
...
@@ -96,6 +96,9 @@ Optional:
...
@@ -96,6 +96,9 @@ Optional:
*
`image_description`
(string) - The description of the resulting image.
*
`image_description`
(string) - The description of the resulting image.
*
`instance_name`
(string) - A name to give the launched instance. Beware
that this must be unique. Defaults to "packer-{{uuid}}".
*
`machine_type`
(string) - The machine type. Defaults to
`n1-standard-1`
.
*
`machine_type`
(string) - The machine type. Defaults to
`n1-standard-1`
.
*
`network`
(string) - The Google Compute network to use for the launched
*
`network`
(string) - The Google Compute network to use for the launched
...
...
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