vagrant-pe_build 0.15.6 → 0.16.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f637c7f7f078263eabf2adf02ca977543dcd2c76
4
- data.tar.gz: 63c05324c683579bf4811a964748a99e8afd4a39
3
+ metadata.gz: 359cc1db4c0d6f48ab89bb75ac482a28396c5541
4
+ data.tar.gz: 20f1e051e25ab86aa95d180bc6805ceb30adf3e7
5
5
  SHA512:
6
- metadata.gz: a8a7f289f6b116692389a6824054361799d0bef1cd5bdc460cc6063eca9f01ffaa8f6b4ba37e5a1faa98cc9064557108991423888252cdab185ba15ebaa263c8
7
- data.tar.gz: bafcb685655e6411c2b87dc1b1ee5ba8cc912bd6f0b68ab21c4ff7baca2296c39b97a46712c8bcb67eadd533092473bc3be4f04ea881914a1d644d6368aef1b0
6
+ metadata.gz: 04bdea5f191965c603da7927cd7ae23d3e9cbc5760b85ceb4ff9d01a2c3b43dfde9ffb7c69d1d306aba983415d0c2021afb0d8d4a6e86696173f5ffbff4f4746
7
+ data.tar.gz: aab8c4b15d77ef1fe81ad97fdbdc7e4f15e63f9e34139f66bc2aacc649eb9abcbd8805e1c60f8cfec5a32a817feb9658cacb8d554c9f284d4f840af1d50cc5c6
data/.travis.yml CHANGED
@@ -20,6 +20,6 @@ matrix:
20
20
  env: TEST_VAGRANT_VERSION=v1.7.4 BUNDLER_VERSION=1.10.5
21
21
 
22
22
  - rvm: 2.2.3
23
- env: TEST_VAGRANT_VERSION=v1.8.5 BUNDLER_VERSION=1.12.5
23
+ env: TEST_VAGRANT_VERSION=v1.8.6 BUNDLER_VERSION=1.12.5
24
24
  - rvm: 2.2.3
25
25
  env: TEST_VAGRANT_VERSION=HEAD BUNDLER_VERSION=1.12.5
data/CHANGELOG CHANGED
@@ -1,6 +1,17 @@
1
1
  vagrant-pe_build
2
2
  ================
3
3
 
4
+ 0.16.0
5
+ ------
6
+
7
+ 2016-10-20
8
+
9
+ This is a backwards compatible feature release.
10
+
11
+ * Add support for PE 2016.4.0.
12
+
13
+ * (GH-127) Switch download progressbars to the ruby-progressbar library.
14
+
4
15
  0.15.6
5
16
  ------
6
17
 
data/Gemfile CHANGED
@@ -1,6 +1,6 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- ENV['TEST_VAGRANT_VERSION'] ||= 'v1.8.5'
3
+ ENV['TEST_VAGRANT_VERSION'] ||= 'v1.8.6'
4
4
 
5
5
  # Wrapping gemspec in the :plugins group causes Vagrant 1.5 and newer to
6
6
  # automagically load this plugin during acceptance tests.
data/README.markdown CHANGED
@@ -22,6 +22,8 @@ optional and can be overridden in a VM's individual provisioner config.
22
22
 
23
23
  * `config.pe_build.version`
24
24
  * Description: The version of Puppet Enterprise to install.
25
+ * `config.pe_build.series`
26
+ * Description: An arbitrary string that can be interpolated into URLs.
25
27
  * `config.pe_build.version_file`
26
28
  * Description: A fully-qualified URI or a path relative to `download_root`. The contents of this file will be read and used to set `version` --- overriding any value that may already be set.
27
29
  * `config.pe_build.suffix` - Suffix of the Puppet Enterprise installer to use.
@@ -47,6 +49,8 @@ optional and can be overridden in a VM's individual provisioner config.
47
49
  be downloaded remotely from `download_root`
48
50
  to the home directory of whichever user account Vagrant is using. Defaults to `true`.
49
51
 
52
+ **NOTE:** Any occurrence of the string `:version` or `:series` in the the strings set as `version_file` or `download_root` will be replaced by the corresponding `version` and `series` configuration values.
53
+
50
54
  ### `pe_bootstrap` Provisioner Settings
51
55
 
52
56
  These settings are on a per provisioner basis. They configure the individual
@@ -41,7 +41,8 @@ module PEBuild
41
41
  require 'pe_build/release/2015_3'
42
42
  require 'pe_build/release/2016_1'
43
43
  require 'pe_build/release/2016_2'
44
+ require 'pe_build/release/2016_4'
44
45
 
45
- LATEST_VERSION = '2016.2.1'
46
+ LATEST_VERSION = '2016.4.0'
46
47
  end
47
48
  end
@@ -0,0 +1,30 @@
1
+ require 'pe_build/release'
2
+
3
+ module PEBuild::Release
4
+
5
+ twentysixteen_four_x = newrelease do
6
+
7
+ add_release :el, '6'
8
+ add_release :el, '7'
9
+
10
+ add_release :sles, '11'
11
+ add_release :sles, '12'
12
+
13
+ add_release :ubuntu, '12.04'
14
+ add_release :ubuntu, '14.04'
15
+ add_release :ubuntu, '16.04'
16
+
17
+ add_release :windows, '2008'
18
+ add_release :windows, '2008R2'
19
+ add_release :windows, '2012'
20
+ add_release :windows, '2012R2'
21
+ add_release :windows, '7'
22
+ add_release :windows, '8'
23
+ add_release :windows, '8.1'
24
+ add_release :windows, '10'
25
+
26
+ set_answer_file :master, File.join(PEBuild.template_dir, 'answers', 'master-2016.2.x.conf.erb')
27
+ end
28
+
29
+ @releases['2016.4.0'] = twentysixteen_four_x
30
+ end
@@ -2,7 +2,7 @@ require 'pe_build/version'
2
2
  require 'pe_build/idempotent'
3
3
 
4
4
  require 'open-uri'
5
- require 'progressbar'
5
+ require 'ruby-progressbar'
6
6
 
7
7
  # @api private
8
8
  module PEBuild::Transfer::OpenURI
@@ -45,17 +45,24 @@ module PEBuild::Transfer::OpenURI
45
45
  # @return [IO]
46
46
  def self.download_file(uri)
47
47
  progress = nil
48
+ downloaded = 0
48
49
 
49
50
  content_length_proc = lambda do |length|
50
51
  if length and length > 0
51
52
  STDERR.puts "Fetching: #{uri}"
52
- progress = ProgressBar.new("Fetching file", length, STDERR)
53
- progress.file_transfer_mode
53
+ progress = ProgressBar.create(
54
+ :title => "Fetching file",
55
+ :total => length,
56
+ :output => STDERR,
57
+ :format => '%t: %p%% |%b>%i| %e')
54
58
  end
55
59
  end
56
60
 
57
61
  progress_proc = lambda do |size|
58
- progress.set(size) if progress
62
+ unless progress.nil?
63
+ progress.progress += (size - downloaded)
64
+ downloaded = size
65
+ end
59
66
  end
60
67
 
61
68
  options = HEADERS.merge({
@@ -64,5 +71,7 @@ module PEBuild::Transfer::OpenURI
64
71
  })
65
72
 
66
73
  uri.open(options)
74
+ ensure
75
+ progress.stop unless progress.nil?
67
76
  end
68
77
  end
@@ -1,3 +1,3 @@
1
1
  module PEBuild
2
- VERSION = '0.15.6'
2
+ VERSION = '0.16.0'
3
3
  end
@@ -18,7 +18,7 @@ Gem::Specification.new do |gem|
18
18
 
19
19
  gem.license = 'Apache 2.0'
20
20
 
21
- gem.add_runtime_dependency 'progressbar', '~> 0.21.0'
21
+ gem.add_runtime_dependency 'ruby-progressbar', '~> 1.8.0'
22
22
  gem.add_runtime_dependency 'minitar', '~> 0.5.4'
23
23
 
24
24
  gem.add_development_dependency 'rake', '~> 10.0'
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.15.6
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrien Thebo
@@ -9,22 +9,22 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-09-10 00:00:00.000000000 Z
12
+ date: 2016-10-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
- name: progressbar
15
+ name: ruby-progressbar
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: 0.21.0
20
+ version: 1.8.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: 0.21.0
27
+ version: 1.8.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: minitar
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -156,6 +156,7 @@ files:
156
156
  - lib/pe_build/release/2015_3.rb
157
157
  - lib/pe_build/release/2016_1.rb
158
158
  - lib/pe_build/release/2016_2.rb
159
+ - lib/pe_build/release/2016_4.rb
159
160
  - lib/pe_build/release/2_0.rb
160
161
  - lib/pe_build/release/2_5.rb
161
162
  - lib/pe_build/release/2_6.rb