vagrant-pe_build 0.18.0 → 0.18.1

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
- SHA1:
3
- metadata.gz: 722fdb02b3003ab773830539fa6846489578b6c4
4
- data.tar.gz: 4ced1f298690ee009cb4906440456d29999029f2
2
+ SHA256:
3
+ metadata.gz: 47070fea96c9cfed9b26f7916bac18a43e8af3eeb65dd08605328f25f56b6c38
4
+ data.tar.gz: 941bb346df8bc01b4638d3d5961d77a763aa83ecf54dfc060c7420225b8c4063
5
5
  SHA512:
6
- metadata.gz: 21b4e98244a6403adc280d8d5c8b78876850806d77755b10759bc4e1686b32aa17b9f10fea25ca68db251943f4ffd22133de8500f71cf49d122016b5c049eb27
7
- data.tar.gz: 8b5f65c5f9086276cc805ae97524d7439e9cbf9907766518aaf1515029e0cc87222334a13cc833b795a0ef722d8dcb9e69b71c9d62a984494e4610fdbf6e1dc0
6
+ metadata.gz: 9f3e6542d5f3749b8ae1912ca7bf842a1921b7ba8b658534d7cc3606174634b36877caec8e11b56b878920ed7c47e5b53e03ee8e12fc72ed600d1d9bcd63790c
7
+ data.tar.gz: 3433c90c3eb6d59e02284c44b72a10308a8bb738cc7869016f662f114d7e202a6c20db7cea8a24742ac0af90f3e65c3f93f5594a4be3fe7827e592119eabdc0b
data/.travis.yml CHANGED
@@ -20,8 +20,6 @@ env:
20
20
 
21
21
  matrix:
22
22
  include:
23
- - rvm: 2.0.0
24
- env: TEST_VAGRANT_VERSION=v1.7.4 BUNDLER_VERSION=1.10.5
25
23
  - rvm: 2.2.5
26
24
  env: TEST_VAGRANT_VERSION=v1.8.7 BUNDLER_VERSION=1.12.5
27
25
  - rvm: 2.3.4
@@ -31,4 +29,6 @@ matrix:
31
29
  - rvm: 2.4.4
32
30
  env: TEST_VAGRANT_VERSION=v2.1.5 BUNDLER_VERSION=1.16.1
33
31
  - rvm: 2.4.4
34
- env: TEST_VAGRANT_VERSION=HEAD BUNDLER_VERSION=1.16.1
32
+ env: TEST_VAGRANT_VERSION=v2.2.2 BUNDLER_VERSION=1.16.6
33
+ - rvm: 2.4.4
34
+ env: TEST_VAGRANT_VERSION=HEAD BUNDLER_VERSION=1.16.6
data/CHANGELOG CHANGED
@@ -1,6 +1,25 @@
1
1
  vagrant-pe_build
2
2
  ================
3
3
 
4
+ 0.18.1
5
+ ------
6
+
7
+ 2019-01-01
8
+
9
+ This is a backwards compatible bugfix release.
10
+
11
+ * Add test coverage for Vagrant 2.2
12
+
13
+ * Add support for 2018.1.5
14
+
15
+ * Add support for 2019.0.1
16
+
17
+ * Fixed an issue where Windows agent packages were not downloaded to the
18
+ location where the installer expected them.
19
+
20
+ * Improved logging around failed Windows installations.
21
+
22
+
4
23
  0.18.0
5
24
  ------
6
25
 
data/Gemfile CHANGED
@@ -1,7 +1,7 @@
1
1
  source 'https://rubygems.org'
2
2
  require 'rubygems/version'
3
3
 
4
- vagrant_branch = ENV['TEST_VAGRANT_VERSION'] || 'v2.1.5'
4
+ vagrant_branch = ENV['TEST_VAGRANT_VERSION'] || 'v2.2.2'
5
5
  vagrant_version = nil
6
6
 
7
7
  # Wrapping gemspec in the :plugins group causes Vagrant 1.5 and newer to
@@ -20,17 +20,33 @@ class PEBuild::Cap::RunInstall::Windows
20
20
  installer_path = installer_path.gsub('/', '\\')
21
21
 
22
22
  cmd = <<-EOS
23
+ $WorkingDirectory = (Get-Item -Path "#{installer_path}" -ErrorVariable InstallerMissing).Directory.FullName
24
+ If ($InstallerMissing) { Exit 1 }
25
+
26
+ $Package = (Get-Item -Path "#{installer_path}").FullName
27
+ $LogFile = "${WorkingDirectory}\\puppet-enterprise-installer.log"
28
+
23
29
  $params = @(
24
30
  "/qn",
25
- "/i `"#{installer_path}`"",
26
- "/l*v puppet-enterprise-installer.log",
31
+ "/i `"${Package}`"",
32
+ "/l*v `"${LogFile}`"",
27
33
  "#{install_options}"
28
34
  )
29
35
 
30
- (Start-Process -FilePath "msiexec.exe" -ArgumentList $params -Wait -Passthru).ExitCode
31
- EOS
36
+ Write-Host "Running msiexec to install: ${Package}"
32
37
 
33
- machine.ui.info "Running: #{cmd}"
38
+ $Result = (Start-Process -FilePath "msiexec.exe" -ArgumentList $params -Wait -Passthru).ExitCode
39
+
40
+ If ($Result -ne 0) {
41
+ $HOST.UI.WriteErrorLine("msiexec failed with exitcode: ${Result}")
42
+ $HOST.UI.WriteErrorLine("Contents of ${LogFile}:")
43
+ Get-Content "${LogFile}" | ForEach-Object { $HOST.UI.WriteErrorLine($_) }
44
+ } Else {
45
+ Write-Host "msiexec completed with exitcode: ${Result}"
46
+ }
47
+
48
+ Exit $Result
49
+ EOS
34
50
 
35
51
  on_machine(machine, cmd)
36
52
  end
@@ -25,8 +25,11 @@ class PEBuild::Cap::StageInstaller::Windows
25
25
  # allows us to download from HTTPS sources that present a self-signed
26
26
  # certificate. For example, a Puppet Master.
27
27
  on_machine(machine, <<-EOS)
28
+ $DestDir = (Get-Item -Path "#{dest_dir}").FullName
29
+ Write-Host "Downloading #{filename} to: ${DestDir}"
30
+
28
31
  [System.Net.ServicePointManager]::ServerCertificateValidationCallback = {$true}
29
- (New-Object System.Net.WebClient).DownloadFile("#{uri}","#{dest_dir}/#{filename}")
32
+ (New-Object System.Net.WebClient).DownloadFile("#{uri}","$DestDir/#{filename}")
30
33
  EOS
31
34
  end
32
35
  end
@@ -32,4 +32,5 @@ module PEBuild::Release
32
32
  @releases['2018.1.2'] = twentyeighteen_one_x
33
33
  @releases['2018.1.3'] = twentyeighteen_one_x
34
34
  @releases['2018.1.4'] = twentyeighteen_one_x
35
+ @releases['2018.1.5'] = twentyeighteen_one_x
35
36
  end
@@ -27,4 +27,5 @@ module PEBuild::Release
27
27
  end
28
28
 
29
29
  @releases['2019.0.0'] = twentynineteen_aught_x
30
+ @releases['2019.0.1'] = twentynineteen_aught_x
30
31
  end
@@ -49,6 +49,6 @@ module PEBuild
49
49
  require 'pe_build/release/2018_1'
50
50
  require 'pe_build/release/2019_0'
51
51
 
52
- LATEST_VERSION = '2019.0.0'
52
+ LATEST_VERSION = '2019.0.1'
53
53
  end
54
54
  end
@@ -1,3 +1,3 @@
1
1
  module PEBuild
2
- VERSION = '0.18.0'.freeze
2
+ VERSION = '0.18.1'.freeze
3
3
  end
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.18.0
4
+ version: 0.18.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adrien Thebo
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2018-10-11 00:00:00.000000000 Z
12
+ date: 2019-01-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby-progressbar
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  version: '0'
225
225
  requirements: []
226
226
  rubyforge_project:
227
- rubygems_version: 2.6.13
227
+ rubygems_version: 2.7.6
228
228
  signing_key:
229
229
  specification_version: 4
230
230
  summary: Vagrant provisioners for installing Puppet Enterprise