Class: PEBuild::ConfigBuilder::PEBootstrap
- Inherits:
-
Global
- Object
- ConfigBuilder::Model::Base
- Global
- PEBuild::ConfigBuilder::PEBootstrap
- Defined in:
- lib/pe_build/config_builder/pe_bootstrap.rb
Instance Attribute Summary collapse
-
#answer_file ⇒ String
The location of alternate answer file for PE installation.
-
#autosign ⇒ TrueClass, ...
Configure the certificates that will be autosigned by the puppet master.
-
#master ⇒ String
The address of the puppet master.
-
#relocate_manifests ⇒ Boolean
Whether or not to change the PE master to use a config of manifestdir=/manifests and modulepath=/modules.
-
#role ⇒ Symbol
The role of the Puppet Enterprise install.
-
#verbose ⇒ Boolean
Whether or not to show the verbose output of the Puppet Enterprise install.
Attributes inherited from Global
#download_root, #filename, #series, #suffix, #version, #version_file
Instance Method Summary collapse
Instance Attribute Details
#answer_file ⇒ String
Returns The location of alternate answer file for PE installation. Values can be paths relative to the Vagrantfile's project directory.
22 |
# File 'lib/pe_build/config_builder/pe_bootstrap.rb', line 22 def_model_attribute :answer_file |
#autosign ⇒ TrueClass, ...
Configure the certificates that will be autosigned by the puppet master.
41 |
# File 'lib/pe_build/config_builder/pe_bootstrap.rb', line 41 def_model_attribute :autosign |
#master ⇒ String
Returns The address of the puppet master.
16 |
# File 'lib/pe_build/config_builder/pe_bootstrap.rb', line 16 def_model_attribute :master |
#relocate_manifests ⇒ Boolean
Returns Whether or not to change the PE master to use a config of manifestdir=/manifests and modulepath=/modules. This is meant to be used when the vagrant working directory manifests and modules are remounted on the guest.
29 |
# File 'lib/pe_build/config_builder/pe_bootstrap.rb', line 29 def_model_attribute :relocate_manifests |
#role ⇒ Symbol
Returns The role of the Puppet Enterprise install.
7 |
# File 'lib/pe_build/config_builder/pe_bootstrap.rb', line 7 def_model_attribute :role |
#verbose ⇒ Boolean
Returns Whether or not to show the verbose output of the Puppet Enterprise install.
12 |
# File 'lib/pe_build/config_builder/pe_bootstrap.rb', line 12 def_model_attribute :verbose |
Instance Method Details
#to_proc ⇒ Object
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 |
# File 'lib/pe_build/config_builder/pe_bootstrap.rb', line 43 def to_proc Proc.new do |vm_config| vm_config.provision :pe_bootstrap do |pe| # Globally settable attributes with_attr(:download_root) { |val| pe.download_root = val } with_attr(:version) { |val| pe.version = val } with_attr(:version_file) { |val| pe.version_file = val } with_attr(:series) { |val| pe.series = val } with_attr(:suffix) { |val| pe.suffix = val } with_attr(:filename) { |val| pe.filename = val } with_attr(:role) { |val| pe.role = val } with_attr(:verbose) { |val| pe.verbose = val } with_attr(:master) { |val| pe.master = val } with_attr(:answer_file) { |val| pe.answer_file = val } with_attr(:relocate_manifests) { |val| pe.relocate_manifests = val } with_attr(:autosign) { |val| pe.autosign = val } end end end |