2012-04-19 04:53:19 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
2012-07-25 22:11:01 +00:00
|
|
|
module Puppet
|
2012-11-07 05:21:36 +00:00
|
|
|
class Plugin < Vagrant.plugin("2")
|
2012-04-19 04:53:19 +00:00
|
|
|
name "puppet"
|
|
|
|
description <<-DESC
|
|
|
|
Provides support for provisioning your virtual machines with
|
|
|
|
Puppet either using `puppet apply` or a Puppet server.
|
|
|
|
DESC
|
|
|
|
|
2013-01-14 00:22:47 +00:00
|
|
|
config(:puppet, :provisioner) do
|
2014-09-16 04:49:37 +00:00
|
|
|
require_relative "config/puppet"
|
2013-01-14 00:22:47 +00:00
|
|
|
Config::Puppet
|
|
|
|
end
|
|
|
|
|
|
|
|
config(:puppet_server, :provisioner) do
|
2014-09-16 04:49:37 +00:00
|
|
|
require_relative "config/puppet_server"
|
2013-01-14 00:22:47 +00:00
|
|
|
Config::PuppetServer
|
|
|
|
end
|
|
|
|
|
|
|
|
provisioner(:puppet) do
|
2014-09-16 04:49:37 +00:00
|
|
|
require_relative "provisioner/puppet"
|
2012-05-23 23:07:08 +00:00
|
|
|
Provisioner::Puppet
|
|
|
|
end
|
|
|
|
|
2013-01-14 00:22:47 +00:00
|
|
|
provisioner(:puppet_server) do
|
2014-09-16 04:49:37 +00:00
|
|
|
require_relative "provisioner/puppet_server"
|
2012-05-23 23:07:08 +00:00
|
|
|
Provisioner::PuppetServer
|
|
|
|
end
|
2012-04-19 04:53:19 +00:00
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|