vagrant/plugins/provisioners/chef/plugin.rb

108 lines
2.8 KiB
Ruby
Raw Permalink Normal View History

require "pathname"
2012-04-19 04:53:19 +00:00
require "vagrant"
require_relative "command_builder"
2012-04-19 04:53:19 +00:00
module VagrantPlugins
module Chef
2012-11-07 05:21:36 +00:00
class Plugin < Vagrant.plugin("2")
2012-04-19 04:53:19 +00:00
name "chef"
description <<-DESC
Provides support for provisioning your virtual machines with
2014-12-24 00:53:29 +00:00
Chef via `chef-solo`, `chef-client`, `chef-zero` or `chef-apply`.
2012-04-19 04:53:19 +00:00
DESC
2014-10-30 19:32:15 +00:00
config(:chef_apply, :provisioner) do
require_relative "config/chef_apply"
Config::ChefApply
2013-01-14 00:41:32 +00:00
end
config(:chef_client, :provisioner) do
require_relative "config/chef_client"
2013-01-14 00:41:32 +00:00
Config::ChefClient
end
2014-10-30 19:32:15 +00:00
config(:chef_solo, :provisioner) do
require_relative "config/chef_solo"
Config::ChefSolo
end
config(:chef_zero, :provisioner) do
require_relative "config/chef_zero"
Config::ChefZero
end
2014-10-30 19:32:15 +00:00
provisioner(:chef_apply) do
require_relative "provisioner/chef_apply"
Provisioner::ChefApply
end
2013-01-14 00:41:32 +00:00
provisioner(:chef_client) do
require_relative "provisioner/chef_client"
Provisioner::ChefClient
end
2014-10-30 19:32:15 +00:00
provisioner(:chef_solo) do
require_relative "provisioner/chef_solo"
Provisioner::ChefSolo
end
provisioner(:chef_zero) do
require_relative "provisioner/chef_zero"
Provisioner::ChefZero
end
2015-11-19 23:01:09 +00:00
guest_capability(:debian, :chef_install) do
require_relative "cap/debian/chef_install"
Cap::Debian::ChefInstall
end
guest_capability(:freebsd, :chef_install) do
require_relative "cap/freebsd/chef_install"
Cap::FreeBSD::ChefInstall
end
guest_capability(:freebsd, :chef_installed) do
require_relative "cap/freebsd/chef_installed"
Cap::FreeBSD::ChefInstalled
end
guest_capability(:linux, :chef_installed) do
require_relative "cap/linux/chef_installed"
Cap::Linux::ChefInstalled
end
2015-11-19 23:01:09 +00:00
guest_capability(:omnios, :chef_install) do
require_relative "cap/omnios/chef_install"
Cap::OmniOS::ChefInstall
end
2015-11-19 23:01:09 +00:00
guest_capability(:omnios, :chef_installed) do
require_relative "cap/omnios/chef_installed"
Cap::OmniOS::ChefInstalled
end
guest_capability(:redhat, :chef_install) do
require_relative "cap/redhat/chef_install"
Cap::Redhat::ChefInstall
end
2016-01-05 14:30:05 +00:00
guest_capability(:suse, :chef_install) do
require_relative "cap/suse/chef_install"
Cap::Suse::ChefInstall
end
2015-11-19 23:01:09 +00:00
guest_capability(:windows, :chef_install) do
require_relative "cap/windows/chef_install"
Cap::Windows::ChefInstall
end
2015-11-19 23:01:09 +00:00
guest_capability(:windows, :chef_installed) do
require_relative "cap/windows/chef_installed"
Cap::Windows::ChefInstalled
end
2012-04-19 04:53:19 +00:00
end
end
end