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/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, ChefSolo, ChefZero, Dummy, Shell

Constant Summary collapse

DEFAULT_PLUGIN =

Default provisioner to use

"chef_solo".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


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

def self.for_plugin(plugin, config)
  Kitchen::Plugin.load(self, plugin, config)
end