# Vagrant Environment for Meter using Chef for provisioning

Example of using Vagrant to stand up a VM and deploy meter using Chef

## Prerequisites

- Vagrant version 1.7.4 or later [download here](https://www.vagrantup.com/downloads.html)
- Virtual Box 4.3.30 or later [download here](https://www.virtualbox.org/wiki/Downloads)
- Git version 1.7 or later

## Installation and Configuration

1. Download the contents of the GitHub repository
    ```bash
$ git clone
    ```

2. Modify `Vagrantfile` with your _api-token_
    ```json
chef.json = {'boundary_meter' => {'token' => '<api-token>' } }
    ```

## Starting the Virtual Machine

1. Run the following command:

    ```bash
    $ vagrant up --provider virtualbox
    ```


## Stopping the Virtual Machine


1. Run the following command:

     ```bash
$ vagrant halt
     ```

# Example of Deploying a Meter Using Chef

Example of using Vagrant to stand up a virtual machine and deploying meter using Chef

## Prerequisites

- Vagrant version 1.7.4 or later [download here](https://www.vagrantup.com/downloads.html)
- Virtual Box 4.3.30 or later [download here](https://www.virtualbox.org/wiki/Downloads)
- Git version 1.7 or later

## Installation and Configuration

1. Download the contents of the GitHub repository
    ```bash
$ git clone https://github.com/boundary/vagrant-meter-chef
    ```

2. Modify `Vagrantfile` with your _api-token_ with the value from your account.
    ```json
chef.json = {'boundary_meter' => {'token' => '<api-token>' } }
    ```

## Starting the Virtual Machine

1. Run the following command:

    ```bash
    $ vagrant up --provider virtualbox
    ```


## Stopping the Virtual Machine


1. Run the following command:

     ```bash
$ vagrant halt
     ```

Add missing URI from clone command ; Revise instructions ; Reword title
Add missing URI from clone command ; Revise instructions ; Reword title
