Class: ConfigBuilder::Model::Provisioner::Puppet
- Defined in:
- lib/config_builder/model/provisioner/puppet.rb
Overview
Instance Attribute Summary collapse
-
#facter ⇒ Hash
A hash of values to use as facts.
-
#manifest_file ⇒ String
The name of the manifest to apply.
-
#manifests_path ⇒ String
The path to the puppet manifests.
-
#module_path ⇒ String
A colon separated set of filesystem paths for Puppet.
-
#options ⇒ String
An arbitrary set of arguments for the ‘puppet` command.
Instance Method Summary collapse
Methods inherited from Base
#attrs=, #call, def_model_attribute, model_attributes, new_from_hash
Instance Attribute Details
#facter ⇒ Hash
Returns A hash of values to use as facts.
18 19 20 |
# File 'lib/config_builder/model/provisioner/puppet.rb', line 18 def facter @facter end |
#manifest_file ⇒ String
Returns The name of the manifest to apply.
10 11 12 |
# File 'lib/config_builder/model/provisioner/puppet.rb', line 10 def manifest_file @manifest_file end |
#manifests_path ⇒ String
Returns The path to the puppet manifests.
6 7 8 |
# File 'lib/config_builder/model/provisioner/puppet.rb', line 6 def manifests_path @manifests_path end |
#module_path ⇒ String
Returns A colon separated set of filesystem paths for Puppet.
14 15 16 |
# File 'lib/config_builder/model/provisioner/puppet.rb', line 14 def module_path @module_path end |
#options ⇒ String
Returns An arbitrary set of arguments for the ‘puppet` command.
22 23 24 |
# File 'lib/config_builder/model/provisioner/puppet.rb', line 22 def @options end |
Instance Method Details
#to_proc ⇒ Object
24 25 26 27 28 29 30 31 32 33 34 |
# File 'lib/config_builder/model/provisioner/puppet.rb', line 24 def to_proc Proc.new do |vm_config| vm_config.provision :puppet do |puppet_config| puppet_config.manifests_path = attr(:manifests_path) if attr(:manifests_path) puppet_config.manifest_file = attr(:manifest_file) if attr(:manifest_file) puppet_config.module_path = attr(:module_path) if attr(:module_path) puppet_config.facter = attr(:facter) if attr(:facter) puppet_config. = attr(:options) if attr(:options) end end end |