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
2da4af81
Commit
2da4af81
authored
Nov 25, 2013
by
Jack Pearkes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: user user varibles in the intro (parallel builds)
parent
5c1f9e4c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
6 deletions
+22
-6
website/source/intro/getting-started/parallel-builds.html.markdown
...ource/intro/getting-started/parallel-builds.html.markdown
+21
-6
website/source/intro/getting-started/provision.html.markdown
website/source/intro/getting-started/provision.html.markdown
+1
-0
No files found.
website/source/intro/getting-started/parallel-builds.html.markdown
View file @
2da4af81
...
@@ -63,13 +63,23 @@ array.
...
@@ -63,13 +63,23 @@ array.
<pre
class=
"prettyprint"
>
<pre
class=
"prettyprint"
>
{
{
"type": "digitalocean",
"type": "digitalocean",
"api_key": "
INSERT API KEY HERE
",
"api_key": "
{{user
`do_api_key`
}}
",
"client_id": "
INSERT CLIENT ID HERE
"
"client_id": "
{{user
`do_client_id`
}}
"
}
}
</pre>
</pre>
Fill in your
`api_key`
and
`client_id`
for DigitalOcean as necessary.
You'll also need to modify the
`variables`
section of the template
The entire template should now
[
look like this
](
https://gist.github.com/mitchellh/51a447e38e7e496eb29c
)
.
to include the access keys for DigitalOcean.
<pre>
"variables": {
...
"do_api_key": "",
"do_client_id": ""
}
</pre>
The entire template should now
[
look like this
](
https://gist.github.com/pearkes/cc5f8505eee5403a43a6
)
.
Additional builders are simply added to the
`builders`
array in the template.
Additional builders are simply added to the
`builders`
array in the template.
This tells Packer to build multiple images. The builder
`type`
values don't
This tells Packer to build multiple images. The builder
`type`
values don't
...
@@ -87,13 +97,18 @@ manual that contains a listing of all the available configuration options.
...
@@ -87,13 +97,18 @@ manual that contains a listing of all the available configuration options.
## Build
## Build
Now run
`packer build
example.json`
. The output is too verbose to include
Now run
`packer build
`
with your user variables
. The output is too verbose to include
all of it, but a portion of it is reproduced below. Note that the ordering
all of it, but a portion of it is reproduced below. Note that the ordering
and wording of the lines may be slightly different, but the effect is the
and wording of the lines may be slightly different, but the effect is the
same.
same.
```
```
$ packer build example.json
$ packer build \
-var 'aws_access_key=YOUR ACCESS KEY' \
-var 'aws_secret_key=YOUR SECRET KEY' \
-var 'do_api_key=YOUR API KEY' \
-var 'do_client_id=YOUR CLIENT ID' \
example.json
==> amazon-ebs: amazon-ebs output will be in this color.
==> amazon-ebs: amazon-ebs output will be in this color.
==> digitalocean: digitalocean output will be in this color.
==> digitalocean: digitalocean output will be in this color.
...
...
website/source/intro/getting-started/provision.html.markdown
View file @
2da4af81
...
@@ -37,6 +37,7 @@ block below.
...
@@ -37,6 +37,7 @@ block below.
<pre
class=
"prettyprint"
>
<pre
class=
"prettyprint"
>
{
{
"variables": [...],
"builders": [...],
"builders": [...],
"provisioners": [{
"provisioners": [{
...
...
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