Class: PEBuild::Provisioners::PuppetEnterpriseBootstrap
- Inherits:
-
Vagrant::Provisioners::Base
- Object
- Vagrant::Provisioners::Base
- PEBuild::Provisioners::PuppetEnterpriseBootstrap
- Defined in:
- lib/pe_build/provisioners/puppet_enterprise_bootstrap.rb
Defined Under Namespace
Classes: Config
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(*args) ⇒ PuppetEnterpriseBootstrap
constructor
A new instance of PuppetEnterpriseBootstrap.
- #prepare ⇒ Object
- #provision! ⇒ Object
- #validate(app, env) ⇒ Object
Constructor Details
#initialize(*args) ⇒ PuppetEnterpriseBootstrap
Returns a new instance of PuppetEnterpriseBootstrap.
37 38 39 40 41 42 43 44 |
# File 'lib/pe_build/provisioners/puppet_enterprise_bootstrap.rb', line 37 def initialize(*args) super load_variables @cache_path = File.join(@env[:root_path], '.pe_build') @answers_dir = File.join(@cache_path, 'answers') end |
Class Method Details
.config_class ⇒ Object
33 34 35 |
# File 'lib/pe_build/provisioners/puppet_enterprise_bootstrap.rb', line 33 def self.config_class Config end |
Instance Method Details
#prepare ⇒ Object
50 51 52 53 |
# File 'lib/pe_build/provisioners/puppet_enterprise_bootstrap.rb', line 50 def prepare FileUtils.mkdir @cache_path unless File.directory? @cache_path @env[:action_runner].run(:prep_build, :unpack_directory => @cache_path) end |
#provision! ⇒ Object
55 56 57 58 59 60 61 62 63 64 65 66 |
# File 'lib/pe_build/provisioners/puppet_enterprise_bootstrap.rb', line 55 def provision! # determine if bootstrapping is necessary prepare_answers_file configure_installer [:pre, :provision, :post].each do |stepname| [:base, config.role].each do |rolename| step rolename, stepname end end end |
#validate(app, env) ⇒ Object
46 47 48 |
# File 'lib/pe_build/provisioners/puppet_enterprise_bootstrap.rb', line 46 def validate(app, env) end |