0.02
No commit activity in last 3 years
No release in over 3 years
There's a lot of open issues
Vagrant plugin which installs an Ohai plugn to properly detect private ipaddress
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
>= 0
 Project Readme

Vagrant::Ohai

This is a vagrant plugin which installs an Ohai plugin providing network information to Chef. In particular, the ipaddress is set to the private network defined in vagrant, if one is present.

Installation

vagrant plugin install vagrant-ohai

Usage

The plugin will automatically activate when using the :chef_solo, :chef_zero, :chef_apply, :chef_client or :shell provisioners. If you want to disable it, put config.ohai.enable = false in your Vagrantfile. If you wish to use a primary nic which is not a private network, e.g. when using a bridge, set the primary_nic option:

config.ohai.primary_nic = "eth1"

To activate custom plugin support put config.ohai.plugins_dir = <full_path_to_plugins_dir> in your Vagrantfile

config.ohai.plugins_dir = "/var/ohai/custom_plugins"

Compatibility

This plugin works with Vagrant 1.2.3 and above.

It has only been tested on VirtualBox but should also work with other Vagrant providers.

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request