vagrant-pe_build 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,6 +1,17 @@
1
1
  vagrant-pe_build
2
2
  ================
3
3
 
4
+ 0.4.3
5
+
6
+ 2013-09-09
7
+
8
+ This is a backwards compatible bugfix release.
9
+
10
+ * (GH-27) Fully implement global pe_build options in pe_bootstrap config_builder model
11
+ * Standardize answer file variables across 2.x and 3.x for console password, listen port
12
+ * Add PE 2.8.3 to supported releases
13
+ * Trap network errors in transfer/openuri
14
+
4
15
  0.4.2
5
16
  -----
6
17
 
@@ -6,7 +6,7 @@ class PEBuild::Cap::RunInstall::POSIX
6
6
  def self.run_install(machine, config, archive)
7
7
 
8
8
  if machine.communicate.test('test -f /opt/puppet/pe_version')
9
- machine.ui.warn I18n.t('pebuild.cap.run_install.posix.already_installed'),
9
+ machine.ui.warn I18n.t('pebuild.cap.run_install.already_installed'),
10
10
  :name => machine.name
11
11
  return
12
12
  end
@@ -28,7 +28,7 @@ class PEBuild::Cap::RunInstall::POSIX
28
28
 
29
29
 
30
30
  if machine.communicate.test('which at')
31
- machine.ui.info I18n.t('pebuild.cap.run_install.posix.scheduling_run')
31
+ machine.ui.info I18n.t('pebuild.cap.run_install.scheduling_run')
32
32
  machine.communicate.sudo("echo '/opt/puppet/bin/puppet agent -t --waitforcert 10' | at next minute")
33
33
  end
34
34
  end
@@ -2,18 +2,24 @@ require 'config_builder/model'
2
2
 
3
3
  class PEBuild::ConfigBuilder::Global < ::ConfigBuilder::Model::Base
4
4
 
5
- # @!attribute [rw] download_root
6
- def_model_attribute :download_root
7
-
8
5
  # @!attribute [rw] version
6
+ # @return [String] The version of Puppet Enterprise to install.
9
7
  def_model_attribute :version
10
8
 
11
9
  # @!attribute [rw] suffix
10
+ # @return [String] The distribution specifix suffix of the Puppet
11
+ # Enterprise installer to use.
12
12
  def_model_attribute :suffix
13
13
 
14
14
  # @!attribute [rw] filename
15
+ # @return [String] The filename of the Puppet Enterprise installer.
15
16
  def_model_attribute :filename
16
17
 
18
+ # @!attribute [rw] download_root
19
+ # @return [String] The URI to the directory containing Puppet Enterprise
20
+ # installers if the installer is not yet cached. This setting is optional.
21
+ def_model_attribute :download_root
22
+
17
23
  def to_proc
18
24
  Proc.new do |global_config|
19
25
  global_config.pe_build.download_root = attr(:download_root) if attr(:download_root)
@@ -2,24 +2,45 @@ require 'config_builder/model'
2
2
 
3
3
  class PEBuild::ConfigBuilder::PEBootstrap < ::PEBuild::ConfigBuilder::Global
4
4
 
5
- def_model_attribute :master
6
- def_model_attribute :answer_file
5
+ # @!attribute [rw] role
6
+ # @return [Symbol] The role of the Puppet Enterprise install.
7
+ def_model_attribute :role
7
8
 
9
+ # @!attribute [rw] verbose
10
+ # @return [Boolean] Whether or not to show the verbose output of the Puppet
11
+ # Enterprise install.
8
12
  def_model_attribute :verbose
9
13
 
10
- def_model_attribute :role
11
- #def_model_attribute :step
14
+ # @!attribute [rw] master
15
+ # @return [String] The address of the puppet master.
16
+ def_model_attribute :master
17
+
18
+ # @!attribute [rw] answer_file
19
+ # @return [String] The location of alternate answer file for PE
20
+ # installation. Values can be paths relative to the Vagrantfile's project
21
+ # directory.
22
+ def_model_attribute :answer_file
23
+
24
+ # @!attribute [rw] relocate_manifests
25
+ # @return [Boolean] Whether or not to change the PE master to use a config
26
+ # of manifestdir=/manifests and modulepath=/modules. This is meant to be
27
+ # used when the vagrant working directory manifests and modules are
28
+ # remounted on the guest.
12
29
  def_model_attribute :relocate_manifests
13
30
 
14
31
  def to_proc
15
32
  Proc.new do |vm_config|
16
33
  vm_config.provision :pe_bootstrap do |pe|
34
+ # Globally settable attributes
17
35
  pe.download_root = attr(:download_root) if attr(:download_root)
18
36
  pe.version = attr(:version) if attr(:version)
19
37
  pe.suffix = attr(:suffix) if attr(:suffix)
20
38
  pe.filename = attr(:filename) if attr(:filename)
21
39
 
22
- pe.role = attr(:role) if attr(:role)
40
+ pe.role = attr(:role) if attr(:role)
41
+ pe.verbose = attr(:verbose) if attr(:verbose)
42
+ pe.master = attr(:master) if attr(:master)
43
+ pe.answer_file = attr(:answer_file) if attr(:answer_file)
23
44
  pe.relocate_manifests = attr(:relocate_manifests) if attr(:relocate_manifests)
24
45
  end
25
46
  end
@@ -46,4 +46,8 @@ class PEBuild::Provisioner::PEBootstrap::AnswersFile
46
46
  template_data = File.read(@template)
47
47
  ERB.new(template_data).result(binding)
48
48
  end
49
+
50
+ def machine_hostname
51
+ @machine.config.vm.hostname || @machine.name
52
+ end
49
53
  end
@@ -32,4 +32,5 @@ module PEBuild::Release
32
32
 
33
33
  @releases['2.8.1'] = two_eight_x
34
34
  @releases['2.8.2'] = two_eight_x
35
+ @releases['2.8.3'] = two_eight_x
35
36
  end
@@ -25,7 +25,7 @@ class PEBuild::Transfer::OpenURI
25
25
  tmpfile = download_file
26
26
  FileUtils.mv(tmpfile, @dst)
27
27
  end
28
- rescue ::OpenURI::HTTPError => e
28
+ rescue ::OpenURI::HTTPError, ::OpenSSL::SSL::SSLError, ::SocketError => e
29
29
  raise DownloadFailed, :uri => @uri, :msg => e.message
30
30
  end
31
31
 
@@ -1,3 +1,3 @@
1
1
  module PEBuild
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
@@ -2,7 +2,7 @@ q_install=y
2
2
  q_puppet_cloud_install=n
3
3
  q_puppet_enterpriseconsole_install=n
4
4
  q_puppet_symlinks_install=y
5
- q_puppetagent_certname=<%= @machine.name %>
5
+ q_puppetagent_certname=<%= machine_hostname %>
6
6
  q_puppetagent_install=y
7
7
  q_puppetagent_server=<%= @config.master %>
8
8
  q_puppetmaster_install=n
@@ -3,7 +3,7 @@ q_install=y
3
3
  q_puppet_cloud_install=n
4
4
  q_puppet_enterpriseconsole_install=n
5
5
  q_puppet_symlinks_install=y
6
- q_puppetagent_certname=<%= @machine.name %>
6
+ q_puppetagent_certname=<%= machine_hostname %>
7
7
  q_puppetagent_install=y
8
8
  q_puppetagent_server=<%= @config.master %>
9
9
  q_puppetca_install=n
@@ -6,7 +6,7 @@ q_puppet_symlinks_install=y
6
6
  q_puppet_enterpriseconsole_auth_database_name=console_auth
7
7
  q_puppet_enterpriseconsole_auth_database_password=console_auth
8
8
  q_puppet_enterpriseconsole_auth_database_user=console_auth
9
- q_puppet_enterpriseconsole_auth_password=pe-console
9
+ q_puppet_enterpriseconsole_auth_password=puppetlabs
10
10
  q_puppet_enterpriseconsole_auth_user_email=admin@puppetlabs.com
11
11
 
12
12
  q_puppet_enterpriseconsole_database_install=y
@@ -15,11 +15,11 @@ q_puppet_enterpriseconsole_database_user=console
15
15
  q_puppet_enterpriseconsole_database_password=tGNHTQAUl9mEkA8K5447
16
16
  q_puppet_enterpriseconsole_database_root_password=UHJn4CrTp5UgLnPJbDB5
17
17
 
18
- q_puppet_enterpriseconsole_httpd_port=20443
18
+ q_puppet_enterpriseconsole_httpd_port=443
19
19
  q_puppet_enterpriseconsole_install=y
20
- q_puppet_enterpriseconsole_inventory_hostname=master
20
+ q_puppet_enterpriseconsole_inventory_hostname=<%= machine_hostname %>
21
21
  q_puppet_enterpriseconsole_inventory_port=8140
22
- q_puppet_enterpriseconsole_master_hostname=master
22
+ q_puppet_enterpriseconsole_master_hostname=<%= machine_hostname %>
23
23
  q_puppet_enterpriseconsole_smtp_host=localhost
24
24
  q_puppet_enterpriseconsole_smtp_password=
25
25
  q_puppet_enterpriseconsole_smtp_port=25
@@ -27,14 +27,14 @@ q_puppet_enterpriseconsole_smtp_use_tls=n
27
27
  q_puppet_enterpriseconsole_smtp_user_auth=n
28
28
  q_puppet_enterpriseconsole_smtp_username=
29
29
 
30
- q_puppetagent_certname=<%= @machine.name %>
30
+ q_puppetagent_certname=<%= machine_hostname %>
31
31
  q_puppetagent_install=y
32
- q_puppetagent_server=<%= @machine.name %>
32
+ q_puppetagent_server=<%= machine_hostname %>
33
33
  q_puppetca_install=y
34
- q_puppetmaster_certname=master
35
- q_puppetmaster_dnsaltnames=master,puppet
34
+ q_puppetmaster_certname=<%= machine_hostname %>
35
+ q_puppetmaster_dnsaltnames=<%= machine_hostname %>,puppet
36
36
  q_puppetmaster_enterpriseconsole_hostname=localhost
37
- q_puppetmaster_enterpriseconsole_port=20443
37
+ q_puppetmaster_enterpriseconsole_port=443
38
38
  q_puppetmaster_install=y
39
39
  q_vendor_packages_install=y
40
40
  q_verify_packages=y
@@ -17,7 +17,7 @@ q_puppet_enterpriseconsole_database_password=aX5nCiKbkjKEBVzW0tCx
17
17
  q_puppet_enterpriseconsole_database_user=console
18
18
  q_puppet_enterpriseconsole_httpd_port=443
19
19
  q_puppet_enterpriseconsole_install=y
20
- q_puppet_enterpriseconsole_master_hostname=master
20
+ q_puppet_enterpriseconsole_master_hostname=<%= machine_hostname %>
21
21
  q_puppet_enterpriseconsole_smtp_host=localhost
22
22
  q_puppet_enterpriseconsole_smtp_password=
23
23
  q_puppet_enterpriseconsole_smtp_port=25
@@ -25,17 +25,17 @@ q_puppet_enterpriseconsole_smtp_use_tls=n
25
25
  q_puppet_enterpriseconsole_smtp_user_auth=n
26
26
  q_puppet_enterpriseconsole_smtp_username=
27
27
  q_puppet_symlinks_install=y
28
- q_puppetagent_certname=<%= @machine.name %>
28
+ q_puppetagent_certname=<%= machine_hostname %>
29
29
  q_puppetagent_install=y
30
- q_puppetagent_server=<%= @machine.name %>
30
+ q_puppetagent_server=<%= machine_hostname %>
31
31
  q_puppetdb_database_name=pe-puppetdb
32
32
  q_puppetdb_database_password=MCPaKB0ERo0FlAN60sny
33
33
  q_puppetdb_database_user=pe-puppetdb
34
- q_puppetdb_hostname=<%= @machine.name %>
34
+ q_puppetdb_hostname=<%= machine_hostname %>
35
35
  q_puppetdb_install=y
36
36
  q_puppetdb_port=8081
37
- q_puppetmaster_certname=<%= @machine.name %>
38
- q_puppetmaster_dnsaltnames=<%= @machine.name %>,puppet
37
+ q_puppetmaster_certname=<%= machine_hostname %>
38
+ q_puppetmaster_dnsaltnames=<%= machine_hostname %>,puppet
39
39
  q_puppetmaster_enterpriseconsole_hostname=localhost
40
40
  q_puppetmaster_enterpriseconsole_port=443
41
41
  q_puppetmaster_install=y
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: vagrant-pe_build
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-22 00:00:00.000000000 Z
12
+ date: 2013-09-09 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: progressbar