ops_manager_cli 0.5.2 → 0.5.4

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: d349b5c21f3e0546bd40781c9674d8ee17d89877
4
- data.tar.gz: 084606520b33f6ebb23285ea89392fef832d5f6b
3
+ metadata.gz: e200f84440299495f24ab5116f42ee811619f202
4
+ data.tar.gz: 34f6349b50099e31de0995fc004d602a47712cdb
5
5
  SHA512:
6
- metadata.gz: 2b1c06d9f0e05a3ed63a6b4b4971b9973b47eef367d99f634d476425d9bd947ef76eccc16606fc1ef0187d058108a01bfccffe77c0c87f26a8b102a09bc421a9
7
- data.tar.gz: e10bdbbb12c7365ebc9108689660ebc3299facd79d88354546cc39113a00a518ac189436eeb4496dca64501a3b944dea470ec4dd32a36c48173eab62c644a888
6
+ metadata.gz: adb1d901dd22f681e4f14e1d90a92216d978d650747f3359895a5db86b8ea13716a71608c8729dc653a7b373ea7532c103ce1e5b7f969e1e9f3ae9d071a1a54e
7
+ data.tar.gz: 3336b1e3aecfcc730fff8e74ddbd5f928640f3bff5047f690b83c63477b91f25695cb77b0c0441f675270324ee732b3e660a4e4cd4350601d624e34208dec29c
data/CHANGELOG.md CHANGED
@@ -1,22 +1,17 @@
1
1
  # Change Log
2
2
 
3
- ## [Unreleased](https://github.com/compozed/ops_manager_cli/tree/HEAD)
4
-
5
- [Full Changelog](https://github.com/compozed/ops_manager_cli/compare/v0.5.1...HEAD)
3
+ ## [v0.5.2](https://github.com/compozed/ops_manager_cli/tree/v0.5.2) (2017-06-27)
4
+ [Full Changelog](https://github.com/compozed/ops_manager_cli/compare/v0.5.1...v0.5.2)
6
5
 
7
6
  **Closed issues:**
8
7
 
9
- - When upgrading opsman the token does not reset [\#27](https://github.com/compozed/ops_manager_cli/issues/27)
10
8
  - Support refresh tokens for re-authentication with UAA [\#24](https://github.com/compozed/ops_manager_cli/issues/24)
9
+ - Upgrading product does not work with opsman\_cli 0.5.0 on opsman 1.9 [\#23](https://github.com/compozed/ops_manager_cli/issues/23)
11
10
  - Allow toggling ops\_manager.log [\#21](https://github.com/compozed/ops_manager_cli/issues/21)
12
11
 
13
12
  ## [v0.5.1](https://github.com/compozed/ops_manager_cli/tree/v0.5.1) (2017-01-25)
14
13
  [Full Changelog](https://github.com/compozed/ops_manager_cli/compare/v0.5.0...v0.5.1)
15
14
 
16
- **Closed issues:**
17
-
18
- - Upgrading product does not work with opsman\_cli 0.5.0 on opsman 1.9 [\#23](https://github.com/compozed/ops_manager_cli/issues/23)
19
-
20
15
  ## [v0.5.0](https://github.com/compozed/ops_manager_cli/tree/v0.5.0) (2017-01-24)
21
16
  [Full Changelog](https://github.com/compozed/ops_manager_cli/compare/v0.4.1...v0.5.0)
22
17
 
@@ -26,7 +21,6 @@
26
21
 
27
22
  **Closed issues:**
28
23
 
29
- - Upgrade does not merge product installation settings [\#22](https://github.com/compozed/ops_manager_cli/issues/22)
30
24
  - ops\_manager curl -x PUT not working [\#17](https://github.com/compozed/ops_manager_cli/issues/17)
31
25
  - When uploading stemcell it does not show the correct output [\#15](https://github.com/compozed/ops_manager_cli/issues/15)
32
26
 
@@ -36,7 +30,6 @@
36
30
  **Fixed bugs:**
37
31
 
38
32
  - Director template generator does not delete UAA sensitive data [\#13](https://github.com/compozed/ops_manager_cli/issues/13)
39
- - Product template generator does not delete stemcell metadata properties [\#12](https://github.com/compozed/ops_manager_cli/issues/12)
40
33
 
41
34
  ## [v0.4.0](https://github.com/compozed/ops_manager_cli/tree/v0.4.0) (2016-10-20)
42
35
  [Full Changelog](https://github.com/compozed/ops_manager_cli/compare/v0.3.0...v0.4.0)
@@ -44,14 +37,12 @@
44
37
  **Implemented enhancements:**
45
38
 
46
39
  - Improve output for appliance deploy/upgrade [\#11](https://github.com/compozed/ops_manager_cli/issues/11)
47
- - Improve output for product deploy/upgrade [\#10](https://github.com/compozed/ops_manager_cli/issues/10)
48
40
  - Run errands when applying changes [\#9](https://github.com/compozed/ops_manager_cli/issues/9)
49
41
  - 1.8 support [\#5](https://github.com/compozed/ops_manager_cli/pull/5) ([bonzofenix](https://github.com/bonzofenix))
50
42
 
51
43
  **Fixed bugs:**
52
44
 
53
45
  - delete-unused-products command not working [\#8](https://github.com/compozed/ops_manager_cli/issues/8)
54
- - Hardcoded user name admin when logging agains ops\_manager [\#2](https://github.com/compozed/ops_manager_cli/issues/2)
55
46
 
56
47
  **Closed issues:**
57
48
 
data/Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
1
  FROM ruby:2.3.0
2
2
 
3
3
  ENV GEM_NAME ops_manager_cli
4
- ENV GEM_VERSION 0.5.2
4
+ ENV GEM_VERSION 0.5.4
5
5
  ENV OVFTOOL_VERSION 4.1.0-2459827
6
6
  ENV OVFTOOL_INSTALLER VMware-ovftool-${OVFTOOL_VERSION}-lin.x86_64.bundle
7
7
  ARG DOWNLOAD_URL
@@ -141,6 +141,10 @@ class OpsManager
141
141
  res
142
142
  end
143
143
 
144
+ def get_ensure_availability
145
+ get("/login/ensure_availability")
146
+ end
147
+
144
148
  def get_token
145
149
  token_issuer.owner_password_grant(username, password, 'opsman.admin').tap do |token|
146
150
  logger.info "UAA Token: #{token.inspect}"
@@ -8,7 +8,7 @@ class OpsManager::ApplianceDeployment
8
8
  def_delegators :pivnet_api, :get_product_releases, :accept_product_release_eula,
9
9
  :get_product_release_files, :download_product_release_file
10
10
  def_delegators :opsman_api, :create_user, :trigger_installation, :get_installation_assets,
11
- :get_installation_settings, :get_diagnostic_report, :upload_installation_assets,
11
+ :get_installation_settings, :get_diagnostic_report, :upload_installation_assets, :get_ensure_availability,
12
12
  :import_stemcell, :target, :password, :username, :ops_manager_version= , :reset_access_token
13
13
 
14
14
  attr_reader :config_file
@@ -63,6 +63,7 @@ class OpsManager::ApplianceDeployment
63
63
  stop_current_vm(current_vm_name)
64
64
  deploy
65
65
  upload_installation_assets
66
+ wait_for_uaa
66
67
  provision_stemcells
67
68
  OpsManager::InstallationRunner.trigger!.wait_for_result
68
69
  end
@@ -136,7 +137,19 @@ class OpsManager::ApplianceDeployment
136
137
  end
137
138
  end
138
139
 
140
+ def wait_for_uaa
141
+ puts '====> Waiting for UAA to become available ...'.green
142
+ while !uaa_available?
143
+ sleep(5)
144
+ end
145
+ end
146
+
139
147
  private
148
+ def uaa_available?
149
+ res = get_ensure_availability
150
+ res.code.eql? '302' and res.body.include? '/auth/cloudfoundry'
151
+ end
152
+
140
153
  def diagnostic_report
141
154
  @diagnostic_report ||= get_diagnostic_report
142
155
  end
@@ -1,3 +1,3 @@
1
1
  class OpsManager
2
- VERSION = "0.5.2"
2
+ VERSION = "0.5.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_manager_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - CompoZed