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
44d1f3d9
Commit
44d1f3d9
authored
Sep 20, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: document `only` and `except`
parent
5c02bd3d
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
120 additions
and
96 deletions
+120
-96
website/Gemfile
website/Gemfile
+4
-4
website/Gemfile.lock
website/Gemfile.lock
+67
-92
website/source/docs/templates/post-processors.html.markdown
website/source/docs/templates/post-processors.html.markdown
+25
-0
website/source/docs/templates/provisioners.html.markdown
website/source/docs/templates/provisioners.html.markdown
+24
-0
No files found.
website/Gemfile
View file @
44d1f3d9
...
@@ -2,11 +2,11 @@ source 'https://rubygems.org'
...
@@ -2,11 +2,11 @@ source 'https://rubygems.org'
ruby
'1.9.3'
ruby
'1.9.3'
gem
"middleman"
,
"~> 3.
0.6
"
gem
"middleman"
,
"~> 3.
1.5
"
gem
"middleman-minify-html"
,
"~> 3.
0.0
"
gem
"middleman-minify-html"
,
"~> 3.
1.1
"
gem
"rack-contrib"
,
"~> 1.1.0"
gem
"rack-contrib"
,
"~> 1.1.0"
gem
"redcarpet"
,
"~>
2.2.2
"
gem
"redcarpet"
,
"~>
3.0.0
"
gem
"therubyracer"
,
"~> 0.1
0.2
"
gem
"therubyracer"
,
"~> 0.1
2.0
"
gem
"thin"
,
"~> 1.5.0"
gem
"thin"
,
"~> 1.5.0"
group
:development
do
group
:development
do
...
...
website/Gemfile.lock
View file @
44d1f3d9
GEM
GEM
remote: https://rubygems.org/
remote: https://rubygems.org/
specs:
specs:
POpen4 (0.1.4)
activesupport (3.2.14)
Platform (>= 0.4.0)
i18n (~> 0.6, >= 0.6.4)
open4
Platform (0.4.0)
activesupport (3.2.9)
i18n (~> 0.6)
multi_json (~> 1.0)
multi_json (~> 1.0)
chunky_png (1.2.
6
)
chunky_png (1.2.
8
)
coffee-script (2.2.0)
coffee-script (2.2.0)
coffee-script-source
coffee-script-source
execjs
execjs
coffee-script-source (1.
3
.3)
coffee-script-source (1.
6
.3)
compass (0.12.2)
compass (0.12.2)
chunky_png (~> 1.2)
chunky_png (~> 1.2)
fssm (>= 0.2.7)
fssm (>= 0.2.7)
sass (~> 3.1)
sass (~> 3.1)
daemons (1.1.9)
daemons (1.1.9)
eventmachine (1.0.
0
)
eventmachine (1.0.
3
)
execjs (1.4.0)
execjs (1.4.0)
multi_json (~> 1.0)
multi_json (~> 1.0)
ffi (1.2.0)
ffi (1.9.0)
fssm (0.2.9)
fssm (0.2.10)
haml (3.1.7)
haml (4.0.3)
highline (1.6.15)
tilt
hike (1.2.1)
highline (1.6.19)
htmlcompressor (0.0.3)
hike (1.2.3)
yui-compressor (~> 0.9.6)
i18n (0.6.5)
http_router (0.10.2)
kramdown (1.1.0)
rack (>= 1.0.0)
libv8 (3.16.14.3)
url_mount (~> 0.2.1)
listen (1.2.3)
i18n (0.6.1)
rb-fsevent (>= 0.9.3)
libv8 (3.3.10.4)
rb-inotify (>= 0.9)
listen (0.5.3)
rb-kqueue (>= 0.2)
maruku (0.6.1)
middleman (3.1.5)
syntax (>= 1.0.0)
middleman (3.0.6)
middleman-core (= 3.0.6)
middleman-more (= 3.0.6)
middleman-sprockets (~> 3.0.2)
middleman-core (3.0.6)
activesupport (~> 3.2.6)
bundler (~> 1.1)
listen (~> 0.5.2)
rack (~> 1.4.1)
rack-test (~> 0.6.1)
rb-fsevent (~> 0.9.1)
rb-inotify (~> 0.8.8)
thor (~> 0.15.4)
tilt (~> 1.3.1)
middleman-minify-html (3.0.0)
htmlcompressor
middleman-core (~> 3.0.0)
middleman-more (3.0.6)
coffee-script (~> 2.2.0)
coffee-script (~> 2.2.0)
coffee-script-source (~> 1.3.3)
compass (>= 0.12.2)
compass (>= 0.12.2)
execjs (~> 1.4.0)
execjs (~> 1.4.0)
haml (>= 3.1.6)
haml (>= 3.1.6)
i18n (~> 0.6
.0)
kramdown (~> 1.1
.0)
m
aruku (~> 0.6.0
)
m
iddleman-core (= 3.1.5
)
middleman-
core (= 3.0.6
)
middleman-
more (= 3.1.5
)
padrino-helpers (= 0.10.7
)
middleman-sprockets (>= 3.1.2
)
sass (>= 3.1.20)
sass (>= 3.1.20)
uglifier (~> 1.2.6)
uglifier (~> 2.1.0)
middleman-sprockets (3.0.4)
middleman-core (3.1.5)
middleman-more (~> 3.0.1)
activesupport (~> 3.2.6)
sprockets (~> 2.1, < 2.5)
bundler (~> 1.1)
sprockets-sass (~> 0.8.0)
i18n (~> 0.6.1)
multi_json (1.4.0)
listen (~> 1.2.2)
open4 (1.3.0)
rack (>= 1.4.5)
padrino-core (0.10.7)
rack-test (~> 0.6.1)
activesupport (~> 3.2.0)
thor (>= 0.15.2, < 2.0)
http_router (~> 0.10.2)
tilt (~> 1.3.6)
sinatra (~> 1.3.1)
middleman-minify-html (3.1.1)
thor (~> 0.15.2)
middleman-core (~> 3.0)
tilt (~> 1.3.0)
middleman-more (3.1.5)
padrino-helpers (0.10.7)
middleman-sprockets (3.1.4)
i18n (~> 0.6)
middleman-core (>= 3.0.14)
padrino-core (= 0.10.7)
middleman-more (>= 3.0.14)
rack (1.4.1)
sprockets (~> 2.1)
sprockets-helpers (~> 1.0.0)
sprockets-sass (~> 1.0.0)
multi_json (1.8.0)
rack (1.5.2)
rack-contrib (1.1.0)
rack-contrib (1.1.0)
rack (>= 0.9.1)
rack (>= 0.9.1)
rack-protection (1.2.0)
rack
rack-test (0.6.2)
rack-test (0.6.2)
rack (>= 1.0)
rack (>= 1.0)
rb-fsevent (0.9.
2
)
rb-fsevent (0.9.
3
)
rb-inotify (0.
8.8
)
rb-inotify (0.
9.2
)
ffi (>= 0.5.0)
ffi (>= 0.5.0)
redcarpet (2.2.2)
rb-kqueue (0.2.0)
sass (3.2.3)
ffi (>= 0.5.0)
sinatra (1.3.3)
redcarpet (3.0.0)
rack (~> 1.3, >= 1.3.6)
ref (1.0.5)
rack-protection (~> 1.2)
sass (3.2.10)
tilt (~> 1.3, >= 1.3.3)
sprockets (2.10.0)
sprockets (2.4.5)
hike (~> 1.2)
hike (~> 1.2)
multi_json (~> 1.0)
multi_json (~> 1.0)
rack (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
tilt (~> 1.1, != 1.3.0)
sprockets-sass (0.8.0)
sprockets-helpers (1.0.1)
sprockets (~> 2.0)
sprockets-sass (1.0.1)
sprockets (~> 2.0)
sprockets (~> 2.0)
tilt (~> 1.1)
tilt (~> 1.1)
syntax (1.0
.0)
therubyracer (0.12
.0)
therubyracer (0.10.2
)
libv8 (~> 3.16.14.0
)
libv8 (~> 3.3.10)
ref
thin (1.5.
0
)
thin (1.5.
1
)
daemons (>= 1.0.9)
daemons (>= 1.0.9)
eventmachine (>= 0.12.6)
eventmachine (>= 0.12.6)
rack (>= 1.0.0)
rack (>= 1.0.0)
thor (0.1
5.4
)
thor (0.1
8.1
)
tilt (1.3.
3
)
tilt (1.3.
7
)
uglifier (
1.2.7
)
uglifier (
2.1.2
)
execjs (>= 0.3.0)
execjs (>= 0.3.0)
multi_json (~> 1.3)
multi_json (~> 1.0, >= 1.0.2)
url_mount (0.2.1)
rack
yui-compressor (0.9.6)
POpen4 (>= 0.1.4)
PLATFORMS
PLATFORMS
ruby
ruby
DEPENDENCIES
DEPENDENCIES
highline (~> 1.6.15)
highline (~> 1.6.15)
middleman (~> 3.
0.6
)
middleman (~> 3.
1.5
)
middleman-minify-html (~> 3.
0.0
)
middleman-minify-html (~> 3.
1.1
)
rack-contrib (~> 1.1.0)
rack-contrib (~> 1.1.0)
redcarpet (~>
2.2.2
)
redcarpet (~>
3.0.0
)
therubyracer (~> 0.1
0.2
)
therubyracer (~> 0.1
2.0
)
thin (~> 1.5.0)
thin (~> 1.5.0)
website/source/docs/templates/post-processors.html.markdown
View file @
44d1f3d9
...
@@ -125,3 +125,28 @@ The answer is no, of course not. Packer is smart enough to figure out
...
@@ -125,3 +125,28 @@ The answer is no, of course not. Packer is smart enough to figure out
that at least one post-processor requested that the input be kept, so it will keep
that at least one post-processor requested that the input be kept, so it will keep
it around.
it around.
</div>
</div>
## Run on Specific Builds
You can use the
`only`
or
`except`
configurations to run a post-processor
only with specific builds. These two configurations do what you expect:
`only`
will only run the post-processor on the specified builds and
`except`
will run the post-processor on anything other than the specified
builds.
An example of
`only`
being used is shown below, but the usage of
`except`
is effectively the same.
`only`
and
`except`
can only be specified on "detailed"
configurations. If you have a sequence of post-processors to run,
`only`
and
`except`
will only affect that single post-processor in the sequence.
<pre
class=
"prettyprint"
>
{
"type": "vagrant",
"only": ["virtualbox"]
}
</pre>
The values within
`only`
or
`except`
are _build names_, not builder
types. If you recall, build names by default are just their builder type,
but if you specify a custom
`name`
parameter, then you should use that
as the value instead of the type.
website/source/docs/templates/provisioners.html.markdown
View file @
44d1f3d9
...
@@ -53,6 +53,30 @@ provisioner to run a local script within the machines:
...
@@ -53,6 +53,30 @@ provisioner to run a local script within the machines:
}
}
</pre>
</pre>
## Run on Specific Builds
You can use the
`only`
or
`except`
configurations to run a provisioner
only with specific builds. These two configurations do what you expect:
`only`
will only run the provisioner on the specified builds and
`except`
will run the provisioner on anything other than the specified
builds.
An example of
`only`
being used is shown below, but the usage of
`except`
is effectively the same:
<pre
class=
"prettyprint"
>
{
"type": "shell",
"script": "script.sh",
"only": ["virtualbox"]
}
</pre>
The values within
`only`
or
`except`
are _build names_, not builder
types. If you recall, build names by default are just their builder type,
but if you specify a custom
`name`
parameter, then you should use that
as the value instead of the type.
## Build-Specific Overrides
## Build-Specific Overrides
While the goal of Packer is to produce identical machine images, it
While the goal of Packer is to produce identical machine images, it
...
...
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