Skip to content

Vagrant plugin which installs a Vagrant Ohai plugin

License

Notifications You must be signed in to change notification settings

kongslund/vagrant-ohai

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 automatcially activate when using the :chef_solo, :chef_zero, :chef_apply or :chef_client 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"

Compatability

This plugin works with Vagrant 1.2.3 and above.

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

About

Vagrant plugin which installs a Vagrant Ohai plugin

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 100.0%