Class: PEBuild::ConfigBuilder::PEBootstrap

Inherits:
Global
  • Object
show all
Defined in:
lib/pe_build/config_builder/pe_bootstrap.rb

Instance Attribute Summary collapse

Attributes inherited from Global

#download_root, #filename, #series, #suffix, #version, #version_file

Instance Method Summary collapse

Instance Attribute Details

#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/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



41
# File 'lib/pe_build/config_builder/pe_bootstrap.rb', line 41

def_model_attribute :autosign

#masterString

Returns The address of the puppet master.

Returns:

  • (String)

    The address of the puppet master.



16
# File 'lib/pe_build/config_builder/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.



29
# File 'lib/pe_build/config_builder/pe_bootstrap.rb', line 29

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/pe_bootstrap.rb', line 7

def_model_attribute :role

#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/pe_bootstrap.rb', line 12

def_model_attribute :verbose

Instance Method Details

#to_procObject



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