mixlib-install 2.1.9 → 2.1.10

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: 85494cb7677e35f2fd1a84ec8c23ecfc0d24efef
4
- data.tar.gz: 38048f01eafc6bd86d79cab807957e0e62a98ab9
3
+ metadata.gz: 33aae15f046862d9ff419e37d41aaa29b81d6c6d
4
+ data.tar.gz: fdc1c8caca3ae66346623fd46021ddb6f42b3180
5
5
  SHA512:
6
- metadata.gz: 489c05e749dd5b421d34b0366872dc9006d1cea865ab8e01b35126808b112341723e9cbb87588ce8b7d85c963d179e148a4049db59b905872e9ed2eeb4934f73
7
- data.tar.gz: 89c412f80a84c223af0f329674affd1325ea9e2f846bf58df0f944c7429613d591d08923648e48b653b018c04f091d2c42d8fff1ef40eab39b17abae31cfa706
6
+ metadata.gz: 83ce80b409838a649904703c165dc194e4749789df457172141fc39c089590f830fcf6b30c2e97d1d6c703a117209b0e7875ab1441950874b7c56b786baf29b6
7
+ data.tar.gz: 3c866560cf575ec0314a9495689194d913b775a341ec31ba4250358fd704894df0afd2d872f4e9917136156c7bd9af84615ecea1505a8c5c0d62ef4c1255e10a
@@ -1,5 +1,6 @@
1
1
  language: ruby
2
2
  sudo: false
3
+ dist: trusty # https://github.com/travis-ci/travis-ci/issues/7131
3
4
 
4
5
  addons:
5
6
  apt:
@@ -1,5 +1,8 @@
1
1
  # Change Log
2
2
 
3
+ ## [2.1.10]
4
+ - Backward and forward compatibility support for `automate` and `delivery` product versions.
5
+
3
6
  ## [2.1.9]
4
7
  - Add `download_directory` option to powershell install script
5
8
 
@@ -6,10 +6,10 @@ set -evx
6
6
  if [ "${CHEF_ACCEPTANCE}" = "true" ] && [[ $encrypted_e2edbb28e76c_key ]]; then
7
7
 
8
8
  # download terraform
9
- wget "https://releases.hashicorp.com/terraform/0.7.4/terraform_0.7.4_linux_amd64.zip"
9
+ wget "https://releases.hashicorp.com/terraform/0.7.4/terraform_0.7.4_linux_amd64.zip" -O tf.zip
10
10
 
11
11
  # inflate archive
12
- unzip terraform_0.7.4_linux_amd64.zip -d bin
12
+ unzip tf.zip -d bin
13
13
 
14
14
  # decrypt pem
15
15
  openssl aes-256-cbc -K $encrypted_e2edbb28e76c_key -iv $encrypted_e2edbb28e76c_iv -in ci/es-infrastructure.pem.enc -out es-infrastructure.pem -d
@@ -49,6 +49,7 @@ If no earlier version is found the earliest version available will be set.",
49
49
  desc: "Print artifact attributes",
50
50
  type: :boolean
51
51
  def download(product_name)
52
+ say_status("Warn", "Product key `delivery` will be deprecated in a future release. Please use `automate`") if product_name == "delivery"
52
53
  # Set mininum options
53
54
  mixlib_install_options = {
54
55
  channel: options[:channel].to_sym,
@@ -193,8 +193,13 @@ PRODUCT_MATRIX = Mixlib::Install::ProductMatrix.new do
193
193
 
194
194
  product "automate" do
195
195
  product_name "Chef Automate"
196
- package_name "delivery"
197
- ctl_command "delivery-ctl"
196
+ # Delivery backward compatibility
197
+ package_name do |v|
198
+ v < version_for("0.7.0") ? "delivery" : "automate"
199
+ end
200
+ ctl_command do |v|
201
+ v < version_for("0.7.0") ? "delivery-ctl" : "automate-ctl"
202
+ end
198
203
  config_file "/etc/delivery/delivery.rb"
199
204
  end
200
205
 
@@ -256,8 +261,13 @@ PRODUCT_MATRIX = Mixlib::Install::ProductMatrix.new do
256
261
 
257
262
  product "delivery" do
258
263
  product_name "Delivery"
259
- package_name "delivery"
260
- ctl_command "delivery-ctl"
264
+ # Chef Automate forward compatibility
265
+ package_name do |v|
266
+ v < version_for("0.7.0") ? "delivery" : "automate"
267
+ end
268
+ ctl_command do |v|
269
+ v < version_for("0.7.0") ? "delivery-ctl" : "automate-ctl"
270
+ end
261
271
  config_file "/etc/delivery/delivery.rb"
262
272
  end
263
273
 
@@ -1,5 +1,5 @@
1
1
  module Mixlib
2
2
  class Install
3
- VERSION = "2.1.9"
3
+ VERSION = "2.1.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mixlib-install
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.9
4
+ version: 2.1.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thom May
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-12-06 00:00:00.000000000 Z
12
+ date: 2017-01-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: artifactory
@@ -290,6 +290,7 @@ files:
290
290
  - mixlib-install.gemspec
291
291
  - support/install_command.ps1
292
292
  - support/install_command.sh
293
+ - terraform_0.7.4_linux_amd64.zip
293
294
  homepage: https://chef.io
294
295
  licenses:
295
296
  - Apache-2.0
@@ -310,7 +311,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
310
311
  version: '0'
311
312
  requirements: []
312
313
  rubyforge_project:
313
- rubygems_version: 2.6.6
314
+ rubygems_version: 2.6.8
314
315
  signing_key:
315
316
  specification_version: 4
316
317
  summary: A mixin to help with omnitruck installs