Skip to content

Latest commit

 

History

History
18 lines (13 loc) · 758 Bytes

README.md

File metadata and controls

18 lines (13 loc) · 758 Bytes

infrataster-plugin-chef

This is a plugin that works with https://github.com/ryotarai/infrataster and https://github.com/opscode/chef-provisioning under Vagrant to extend the Infrataster::Server object to contain Chef node data

Usage

Within your spec_helper.rb instead of using Infrataster::Server.define use the new Infrataster::ChefServer class instead as shown below

Infrataster::ChefServer.define(
  "testserver",
  "192.168.39.20",
  chefnode: "prov/repo/nodes/testserver.json",
  vagrant: true
)

chefnode is a new argument that provides the path to a JSON file that represents the chef node. When using chef-provisioning to create servers this is usually created by chef-provisioning within your existing local repository