Class: PEBuild::ConfigBuilder::PEBootstrap

Inherits:
ConfigBuilder::Model::Provisioner::Base
  • Object
show all
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

Instance Method Summary collapse

Instance Attribute Details

#answer_extrasArray<String>

Returns An array of additional answer strings that will be appended to the answer file. (Optional).

Returns:

  • (Array<String>)

    An array of additional answer strings that will be appended to the answer file. (Optional)

Since:

  • 0.11.0



28
# File 'lib/pe_build/config_builder/0_x/pe_bootstrap.rb', line 28

def_model_attribute :answer_extras

#answer_fileString

Returns The location of alternate answer file for PE installation. Values can be paths relative to the Vagrantfile's project directory.

Returns:

  • (String)

    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

#autosignTrueClass, ...

Configure the certificates that will be autosigned by the puppet master.

Returns:

  • (TrueClass)

    All CSRs will be signed

  • (FalseClass)

    The autosign config file will be unmanaged

  • (Array<String>)

    CSRs with the given addresses

See Also:

Since:

  • 0.4.0



47
# File 'lib/pe_build/config_builder/0_x/pe_bootstrap.rb', line 47

def_model_attribute :autosign

#download_rootString

Returns The URI to the directory containing Puppet Enterprise installers if the installer is not yet cached. This setting is optional.

Returns:

  • (String)

    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

#filenameString

Returns The filename of the Puppet Enterprise installer.

Returns:

  • (String)

    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

#masterString

Returns The address of the puppet master.

Returns:

  • (String)

    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_manifestsBoolean

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.

Returns:

  • (Boolean)

    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

#roleSymbol

Returns The role of the Puppet Enterprise install.

Returns:

  • (Symbol)

    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

#seriesString

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.

Returns:

  • (String)

    The release series of PE. Completely optional and currently has no effect other than being an interpolation token available for use in #download_root.

Since:

  • 0.9.0



21
# File 'lib/pe_build/config_builder/1_x/pe_bootstrap.rb', line 21

def_model_attribute :series

#shared_installerBoolean

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.

Returns:

  • (Boolean)

    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.

Since:

  • 0.14.0



44
# File 'lib/pe_build/config_builder/1_x/pe_bootstrap.rb', line 44

def_model_attribute :shared_installer

#suffixString

Returns The distribution specifix suffix of the Puppet Enterprise installer to use.

Returns:

  • (String)

    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

#verboseBoolean

Returns Whether or not to show the verbose output of the Puppet Enterprise install.

Returns:

  • (Boolean)

    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

#versionString

Returns The version of Puppet Enterprise to install.

Returns:

  • (String)

    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_fileString

Returns The path to a file relative to #download_root. The contents of this file will be read and used to specify #version.

Returns:

  • (String)

    The path to a file relative to #download_root. The contents of this file will be read and used to specify #version.

Since:

  • 0.9.0



13
# File 'lib/pe_build/config_builder/1_x/pe_bootstrap.rb', line 13

def_model_attribute :version_file

Instance Method Details

#to_procObject



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