Module: Kitchen::Provisioner

Defined in:
lib/kitchen/provisioner.rb,
lib/kitchen/provisioner/base.rb,
lib/kitchen/provisioner/dummy.rb,
lib/kitchen/provisioner/shell.rb,
lib/kitchen/provisioner/chef_base.rb,
lib/kitchen/provisioner/chef_solo.rb,
lib/kitchen/provisioner/chef_zero.rb,
lib/kitchen/provisioner/chef_apply.rb,
lib/kitchen/provisioner/chef_infra.rb,
lib/kitchen/provisioner/chef/berkshelf.rb,
lib/kitchen/provisioner/chef/policyfile.rb,
lib/kitchen/provisioner/chef/common_sandbox.rb

Overview

A provisioner is responsible for generating the commands necessary to install set up and use a configuration management tool such as Chef and Puppet.

Author:

Defined Under Namespace

Modules: Chef Classes: Base, ChefApply, ChefBase, ChefInfra, ChefSolo, ChefZero, Dummy, Shell

Constant Summary collapse

DEFAULT_PLUGIN =

Default provisioner to use

"chef_infra".freeze

Class Method Summary collapse

Class Method Details

.for_plugin(plugin, config) ⇒ Provisioner::Base

Returns an instance of a provisioner given a plugin type string.

Parameters:

  • plugin (String)

    a provisioner plugin type, to be constantized

  • config (Hash)

    a configuration hash to initialize the provisioner

Returns:

Raises:

  • (ClientError)

    if a provisioner instance could not be created



37
38
39
40
# File 'lib/kitchen/provisioner.rb', line 37

def self.for_plugin(plugin, config)
  plugin, config[:name] = "chef_infra", "chef_infra" if plugin == "chef_zero"
  Kitchen::Plugin.load(self, plugin, config)
end