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
e38b5827
Commit
e38b5827
authored
Jun 28, 2013
by
Mitchell Hashimoto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
website: doc veewee-to-packer
parent
a0009341
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
61 additions
and
0 deletions
+61
-0
website/source/docs/templates/veewee-to-packer.html.markdown
website/source/docs/templates/veewee-to-packer.html.markdown
+60
-0
website/source/layouts/docs.erb
website/source/layouts/docs.erb
+1
-0
No files found.
website/source/docs/templates/veewee-to-packer.html.markdown
0 → 100644
View file @
e38b5827
---
layout
:
"
docs"
page_title
:
"
Convert
Veewee
Definitions
to
Packer
Templates"
---
# Veewee-to-Packer
If you are or were a user of
[
Veewee
](
https://github.com/jedi4ever/veewee
)
,
then there is an official tool called
[
veewee-to-packer
](
https://github.com/mitchellh/veewee-to-packer
)
that will convert your Veewee definition into an equivalent Packer template.
Even if you're not a Veewee user, Veewee has a
[
large library
](
https://github.com/jedi4ever/veewee/tree/master/templates
)
of templates that can be readily used with Packer by simply converting them.
## Installation and Usage
Since Veewee itself is a Ruby project, so to is the veewee-to-packer
application so that it can read the Veewee configurations. Install it using RubyGems:
```
$ gem install veewee-to-packer
...
```
Once installed, usage is easy! Just point call
`veewee-to-packer`
pointed
at the
`definition.rb`
file of any template. The converter will output
any warnings or messages about the conversion. The example below converts
a CentOS template:
```
$ veewee-to-packer templates/CentOS-6.4/definition.rb
Success! Your Veewee definition was converted to a Packer
template! The template can be found in the `template.json` file
in the output directory: output
Please be sure to run `packer validate` against the new template
to verify settings are correct. Be sure to `cd` into the directory
first, since the template has relative paths that expect you to
use it from the same working directory.
```
***Voila!**
*
By default,
`veewee-to-packer`
will output a template that
contains a builder for both VirtualBox and VMware. You can use the
`-only`
flag on
`packer build`
to only build one of them. Otherwise
you can use the
`--builder`
flag on
`veewee-to-packer`
to only output
specific builder configurations.
## Limitations
None, really. The tool will tell you if it can't convert a part of a
template, and whether that is a critical error or just a warning.
Most of Veewees functions translate perfectly over to Packer. There are
still a couple missing features in Packer, but they're minimal.
## Bugs
If you find any bugs, please report them to the
[
veewee-to-packer issue tracker
](
https://github.com/mitchellh/veewee-to-packer
)
.
I haven't been able to exhaustively test every Veewee template, so there
are certainly some edge cases out there.
website/source/layouts/docs.erb
View file @
e38b5827
...
...
@@ -21,6 +21,7 @@
<li><a
href=
"/docs/templates/provisioners.html"
>
Provisioners
</a></li>
<li><a
href=
"/docs/templates/post-processors.html"
>
Post-Processors
</a></li>
<li><a
href=
"/docs/templates/configuration-templates.html"
>
Configuration Templates
</a></li>
<li><a
href=
"/docs/templates/veewee-to-packer.html"
>
Veewee-to-Packer
</a></li>
</ul>
<ul>
...
...
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