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,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
|