Class: PEBuild::ConfigBuilder::PEBootstrap
- Inherits:
-
ConfigBuilder::Model::Provisioner::Base
- Object
- ConfigBuilder::Model::Provisioner::Base
- PEBuild::ConfigBuilder::PEBootstrap
- Defined in:
- lib/pe_build/config_builder/0_x/pe_bootstrap.rb,
lib/pe_build/config_builder/1_x/pe_bootstrap.rb
Instance Attribute Summary collapse
-
#answer_extras ⇒ Array<String>
An array of additional answer strings that will be appended to the answer file.
-
#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.
-
#download_root ⇒ String
The URI to the directory containing Puppet Enterprise installers if the installer is not yet cached.
-
#filename ⇒ String
The filename of the Puppet Enterprise installer.
-
#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.
-
#series ⇒ String
The release series of PE.
-
#shared_installer ⇒ Boolean
Whether to run PE installation using installers and answers shared using the
/vagrant
mount. -
#suffix ⇒ String
The distribution specifix suffix of the Puppet Enterprise installer to use.
-
#verbose ⇒ Boolean
Whether or not to show the verbose output of the Puppet Enterprise install.
-
#version ⇒ String
The version of Puppet Enterprise to install.
-
#version_file ⇒ String
The path to a file relative to #download_root.
Instance Method Summary collapse
Instance Attribute Details
#answer_extras ⇒ Array<String>
Returns An array of additional answer strings that will be appended to the answer file. (Optional).
28 |
# File 'lib/pe_build/config_builder/0_x/pe_bootstrap.rb', line 28 def_model_attribute :answer_extras |
#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/0_x/pe_bootstrap.rb', line 22 def_model_attribute :answer_file |
#autosign ⇒ TrueClass, ...
Configure the certificates that will be autosigned by the puppet master.
47 |
# File 'lib/pe_build/config_builder/0_x/pe_bootstrap.rb', line 47 def_model_attribute :autosign |
#download_root ⇒ String
Returns The URI to the directory containing Puppet Enterprise installers if the installer is not yet cached. This setting is optional.
35 |
# File 'lib/pe_build/config_builder/1_x/pe_bootstrap.rb', line 35 def_model_attribute :download_root |
#filename ⇒ String
Returns The filename of the Puppet Enterprise installer.
30 |
# File 'lib/pe_build/config_builder/1_x/pe_bootstrap.rb', line 30 def_model_attribute :filename |
#master ⇒ String
Returns The address of the puppet master.
16 |
# File 'lib/pe_build/config_builder/0_x/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.
35 |
# File 'lib/pe_build/config_builder/0_x/pe_bootstrap.rb', line 35 def_model_attribute :relocate_manifests |
#role ⇒ Symbol
Returns The role of the Puppet Enterprise install.
7 |
# File 'lib/pe_build/config_builder/0_x/pe_bootstrap.rb', line 7 def_model_attribute :role |
#series ⇒ String
Returns The release series of PE. Completely optional and currently has no effect other than being an interpolation token available for use in #download_root.
21 |
# File 'lib/pe_build/config_builder/1_x/pe_bootstrap.rb', line 21 def_model_attribute :series |
#shared_installer ⇒ Boolean
Returns Whether to run PE installation using installers and
answers shared using the /vagrant
mount. If set to false
, resources
will be downloaded remotely to the home directory of whichever user
account Vagrant is using. Defaults to true
.
44 |
# File 'lib/pe_build/config_builder/1_x/pe_bootstrap.rb', line 44 def_model_attribute :shared_installer |
#suffix ⇒ String
Returns The distribution specifix suffix of the Puppet Enterprise installer to use.
26 |
# File 'lib/pe_build/config_builder/1_x/pe_bootstrap.rb', line 26 def_model_attribute :suffix |
#verbose ⇒ Boolean
Returns Whether or not to show the verbose output of the Puppet Enterprise install.
12 |
# File 'lib/pe_build/config_builder/0_x/pe_bootstrap.rb', line 12 def_model_attribute :verbose |
#version ⇒ String
Returns The version of Puppet Enterprise to install.
7 |
# File 'lib/pe_build/config_builder/1_x/pe_bootstrap.rb', line 7 def_model_attribute :version |
#version_file ⇒ String
Returns The path to a file relative to #download_root. The contents of this file will be read and used to specify #version.
13 |
# File 'lib/pe_build/config_builder/1_x/pe_bootstrap.rb', line 13 def_model_attribute :version_file |
Instance Method Details
#to_proc ⇒ Object
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 |
# File 'lib/pe_build/config_builder/0_x/pe_bootstrap.rb', line 49 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(:shared_installer) { |val| pe.shared_installer = 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(:answer_extras) { |val| pe.answer_extras = val } with_attr(:relocate_manifests) { |val| pe.relocate_manifests = val } with_attr(:autosign) { |val| pe.autosign = val } end end end |