github.com/ratanraj/packer@v1.3.2/website/source/guides/veewee-to-packer.html.md (about) 1 --- 2 layout: guides 3 sidebar_current: guides-veewee-to-packer 4 page_title: Convert Veewee Definitions to Packer Templates - Guides 5 description: |- 6 If you are or were a user of Veewee, then there is an official tool called 7 veewee-to-packer that will convert your Veewee definition into an equivalent 8 Packer template. Even if you're not a Veewee user, Veewee has a large library 9 of templates that can be readily used with Packer by simply converting them. 10 --- 11 12 # Veewee-to-Packer 13 14 If you are or were a user of [Veewee](https://github.com/jedi4ever/veewee), then 15 there is an official tool called 16 [veewee-to-packer](https://github.com/mitchellh/veewee-to-packer) that will 17 convert your Veewee definition into an equivalent Packer template. Even if 18 you're not a Veewee user, Veewee has a [large 19 library](https://github.com/jedi4ever/veewee/tree/master/templates) of templates 20 that can be readily used with Packer by simply converting them. 21 22 ## Installation and Usage 23 24 Since Veewee itself is a Ruby project, so too is the veewee-to-packer 25 application so that it can read the Veewee configurations. Install it using 26 RubyGems: 27 28 ```text 29 $ gem install veewee-to-packer 30 # ... 31 ``` 32 33 Once installed, just point `veewee-to-packer` at the `definition.rb` file of any 34 template. The converter will output any warnings or messages about the conversion. 35 The example below converts a CentOS template: 36 37 ```text 38 $ veewee-to-packer templates/CentOS-6.4/definition.rb 39 Success! Your Veewee definition was converted to a Packer 40 template! The template can be found in the `template.json` file 41 in the output directory: output 42 43 Please be sure to run `packer validate` against the new template 44 to verify settings are correct. Be sure to `cd` into the directory 45 first, since the template has relative paths that expect you to 46 use it from the same working directory. 47 ``` 48 49 ***Voila!*** By default, `veewee-to-packer` will output a template that contains 50 a builder for both VirtualBox and VMware. You can use the `-only` flag on 51 `packer build` to only build one of them. Otherwise you can use the `--builder` 52 flag on `veewee-to-packer` to only output specific builder configurations. 53 54 ## Limitations 55 56 None, really. The tool will tell you if it can't convert a part of a template, 57 and whether that is a critical error or just a warning. Most of Veewee's 58 functions translate perfectly over to Packer. There are still a couple missing 59 features in Packer, but they're minimal. 60 61 ## Bugs 62 63 If you find any bugs, please report them to the [veewee-to-packer issue 64 tracker](https://github.com/mitchellh/veewee-to-packer). I haven't been able to 65 exhaustively test every Veewee template, so there are certainly some edge cases 66 out there.