vagrant-config_builder 0.3.1 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,6 +1,15 @@
1
1
  CHANGELOG
2
2
  =========
3
3
 
4
+ 0.4.0
5
+ -----
6
+
7
+ 2013-08-28
8
+
9
+ This is a backwards compatible feature release.
10
+
11
+ * (GH-11) Register puppet and puppet_server as provisioners
12
+
4
13
  0.3.1
5
14
  -----
6
15
 
@@ -1,5 +1,5 @@
1
1
  # @see http://docs.vagrantup.com/v2/provisioning/puppet_apply.html
2
- class ConfigBuilder::Model::Provisioner::Puppet
2
+ class ConfigBuilder::Model::Provisioner::Puppet < ConfigBuilder::Model::Base
3
3
 
4
4
  # @!attribute [rw] manifests_path
5
5
  # @return [String] The path to the puppet manifests.
@@ -20,4 +20,18 @@ class ConfigBuilder::Model::Provisioner::Puppet
20
20
  # @!attribute [rw] options
21
21
  # @return [String] An arbitrary set of arguments for the `puppet` command
22
22
  attr_accessor :options
23
+
24
+ def to_proc
25
+ Proc.new do |vm_config|
26
+ vm_config.provision :puppet do |puppet_config|
27
+ puppet_config.manifests_path = attr(:manifests_path) if attr(:manifests_path)
28
+ puppet_config.manifest_file = attr(:manifest_file) if attr(:manifest_file)
29
+ puppet_config.module_path = attr(:module_path) if attr(:module_path)
30
+ puppet_config.facter = attr(:facter) if attr(:facter)
31
+ puppet_config.options = attr(:options) if attr(:options)
32
+ end
33
+ end
34
+ end
35
+
36
+ ConfigBuilder::Model::Provisioner.register('puppet', self)
23
37
  end
@@ -1,5 +1,5 @@
1
1
  # @see http://docs.vagrantup.com/v2/provisioning/puppet_agent.html
2
- class ConfigBuilder::Model::Provisioner::PuppetServer
2
+ class ConfigBuilder::Model::Provisioner::PuppetServer < ConfigBuilder::Model::Base
3
3
 
4
4
  # @!attribute [rw] puppet_server
5
5
  # @return [String]
@@ -12,4 +12,16 @@ class ConfigBuilder::Model::Provisioner::PuppetServer
12
12
  # @!attribute [rw] options
13
13
  # @return [String]
14
14
  attr_accessor :options
15
+
16
+ def to_proc
17
+ Proc.new do |vm_config|
18
+ vm_config.provision :puppet_server do |puppet_config|
19
+ puppet_config.puppet_server = attr(:puppet_server) if attr(:puppet_server)
20
+ puppet_config.node_name = attr(:node_name) if attr(:node_name)
21
+ puppet_config.options = attr(:options) if attr(:options)
22
+ end
23
+ end
24
+ end
25
+
26
+ ConfigBuilder::Model::Provisioner.register('puppet_server', self)
15
27
  end
@@ -1,3 +1,3 @@
1
1
  module ConfigBuilder
2
- VERSION = '0.3.1'
2
+ VERSION = '0.4.0'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-config_builder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.4.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: