<commit_before># packer-templates

[![Build Status](http://img.shields.io/travis/kaorimatz/packer-templates.svg?style=flat)](https://travis-ci.org/kaorimatz/packer-templates)

Templates for [Packer](http://www.packer.io/)

## Usage

Clone the repository:

    $ git clone https://github.com/kaorimatz/packer-templates && cd packer-templates

Build a machine image from the template in the repository:

    $ packer build fedora-20-x86_64.json<commit_msg>Add `Configuration' section to README.md<commit_after># packer-templates

[![Build Status](http://img.shields.io/travis/kaorimatz/packer-templates.svg?style=flat)](https://travis-ci.org/kaorimatz/packer-templates)

Templates for [Packer](http://www.packer.io/)

## Usage

Clone the repository:

    $ git clone https://github.com/kaorimatz/packer-templates && cd packer-templates

Build a machine image from the template in the repository:

    $ packer build fedora-20-x86_64.json

## Configuration

You can configure each template to match your requirements by setting the following [user variables](https://packer.io/docs/templates/user-variables.html).

 User Variable      | Default Value | Description
--------------------|---------------|----------------------------------------------------------------------------------------
 `compressin_level` | 6             | [Documentation](https://packer.io/docs/post-processors/vagrant.html#compression_level)
 `cpus`             | 1             | Number of CPUs
 `disk_size`        | 40000         | [Documentation](https://packer.io/docs/builders/virtualbox-iso.html#disk_size)
 `headless`         | 0             | [Documentation](https://packer.io/docs/builders/virtualbox-iso.html#headless)
 `memory`           | 512           | Memory size in MB
 `mirror`           |               | A URL of the mirror where the ISO image is available

### Example

Build an uncompressed Fedora 20 vagrant box with a 4GB hard disk:

    $ packer build -var compression_level=0 -var disk_size=4000 fedora-20-x86_64.json
{'fraction_non_alphanumeric': 0.17395626242544732, 'fraction_numerical': 0.018389662027833, 'mean_word_length': 2.640144665461121, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 8, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4949286', 'n_tokens_mistral': 622, 'n_tokens_neox': 586, 'n_words': 134}