ops_manager_cli 0.7.11 → 0.7.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fdc90c0ebcf8eec0f36dabad16951c34aaa7cf2a
4
- data.tar.gz: 5c7c94650a628f317e8138c2eae5c3d749d371d2
3
+ metadata.gz: ee5a9bff7eaf8b7173c9e4e4b5d2bfa95cad310e
4
+ data.tar.gz: 9f167f4715184828677892aabbfcf6f2bf0c2bce
5
5
  SHA512:
6
- metadata.gz: cf5d1e7b4a78aecb272ca47821a286ca3f2a8a219f915e22e6b21e0c5031a18ab08416ed751a3b59a618c7e359b1a3b4be6ecab373f31527e5c170f4252f9409
7
- data.tar.gz: 4ac9422ac493e4725ccd8cc252e59ce79d9e811ff1e59c18e392fd6ca49ff6b9300eb2143f4768e58db4384abf9113c05e673630f05fde3cb3b76c189b70be85
6
+ metadata.gz: e435c487df21a31cd91e5b2eb1f96faa8e55b11470f4b156d821de0829ef45e084c117ba009e9aa69be64e29c05014b63a18643ea21b3040c5200837d0af6d93
7
+ data.tar.gz: 295e443dd6b68eb53ef2f882cc8169e4dc8cc6d7deafe59c90b72ce31674d6875d01c593914c957f287044d3a7056039ee0bfd9ca8331d100ebbcde6dca492c0
@@ -1,5 +1,34 @@
1
1
  # Change Log
2
2
 
3
+
4
+ ## [v0.7.14](https://github.com/compozed/ops_manager_cli/tree/v0.7.14 (2019-01-21)
5
+ [Full Changelog](https://github.com/compozed/ops_manager_cli/compare/v0.7.13...v0.7.14)
6
+
7
+ AWS appliance deployments no longer require the `ami_mapping_file`. Instead you must do
8
+ the mapping lookup (if needed) prior to calling opsman, and pass it an explicit `image_id`
9
+ option, pointing `ops_manager_cli` at a custom AMI. This allows it to easily support deploying
10
+ OpsManager using an encrypted AMI.
11
+
12
+ ## [v0.7.13](https://github.com/compozed/ops_manager_cli/tree/v0.7.13 (2019-01-08)
13
+ [Full Changelog](https://github.com/compozed/ops_manager_cli/compare/v0.7.12...v0.7.13)
14
+
15
+ Fixes a bug when upgrading an opsmanager VM that has Xenial stemcells on it
16
+
17
+ ## [v0.7.12]://github.com/compozed/ops_manager_cli/tree/v0.7.12) (2018-10-29)
18
+ [Full Changelog](https://github.com/compozed/ops_manager_cli/compare/v0.7.11...v0.7.12)
19
+
20
+ - Adds support for deploying multiple tiles (but not all) at once. This is useful for
21
+ scenarios like deploying PAS at the same time as Isolation Segments or Windows Runtime
22
+ tiles. Instead of specifying `single_tile_deployment` in your config, specify `selected_deployments`,
23
+ with its value being a list of all product guids to deploy:
24
+
25
+ ```
26
+ selected_deployments:
27
+ - product-guid-1234
28
+ - other-product-5678
29
+ ```
30
+
31
+
3
32
  ## [v0.7.11]://github.com/compozed/ops_manager_cli/tree/v0.7.11) (2018-10-16)
4
33
  [Full Changelog](https://github.com/compozed/ops_manager_cli/compare/v0.7.10...v0.7.11)
5
34
 
data/Dockerfile CHANGED
@@ -1,9 +1,10 @@
1
1
  FROM ruby:2.4.1
2
2
 
3
3
  ENV GEM_NAME ops_manager_cli
4
- ENV GEM_VERSION 0.7.11
5
- ENV SPRUCE_VERSION 1.17.0
4
+ ENV GEM_VERSION 0.7.14
5
+ ENV SPRUCE_VERSION 1.19.1
6
6
  ENV JQ_VERSION 1.5
7
+ ENV OM_VERSION 0.42.0
7
8
  ENV OVFTOOL_VERSION 4.3.0-7948156
8
9
  ENV OVFTOOL_INSTALLER VMware-ovftool-${OVFTOOL_VERSION}-lin.x86_64.bundle
9
10
  ARG DOWNLOAD_URL
@@ -20,13 +21,17 @@ RUN wget -q --no-check-certificate ${DOWNLOAD_URL} \
20
21
  && rm -f ${OVFTOOL_INSTALLER}*
21
22
 
22
23
  # ================== Installs Spruce ==============
23
- RUN wget -q -O /usr/local/bin/spruce --no-check-certificate https://github.com/geofffranks/spruce/releases/download/v${SPRUCE_VERSION}/spruce-linux-amd64 \
24
+ RUN wget -v -O /usr/local/bin/spruce --no-check-certificate https://github.com/geofffranks/spruce/releases/download/v${SPRUCE_VERSION}/spruce-linux-amd64 \
24
25
  && chmod +x /usr/local/bin/spruce
25
26
 
26
27
  # ================== Installs JQ ==============
27
28
  RUN wget -q -O /usr/local/bin/jq --no-check-certificate https://github.com/stedolan/jq/releases/download/jq-${JQ_VERSION}/jq-linux64 \
28
29
  && chmod +x /usr/local/bin/jq
29
30
 
31
+ #============ Installs Om ============
32
+ RUN wget -q -O /usr/local/bin/om --no-check-certificate https://github.com/pivotal-cf/om/releases/download/${OM_VERSION}/om-linux \
33
+ && chmod +x /usr/local/bin/om
34
+
30
35
  # ================== Installs ops_manager_cli gem ==============
31
36
  COPY pkg/${GEM_NAME}-${GEM_VERSION}.gem /tmp/
32
37
  RUN echo ':ssl_verify_mode: 0' > ~/.gemrc \
@@ -6,8 +6,6 @@ class OpsManager
6
6
  class AWS < Base
7
7
 
8
8
  def deploy_vm
9
- image_id = ::YAML.load_file(ami_mapping_file)[config[:opts][:region]]
10
-
11
9
  server = connection.servers.create(
12
10
  block_device_mapping: [{
13
11
  'DeviceName' => '/dev/xvda',
@@ -16,7 +14,7 @@ class OpsManager
16
14
  key_name: config[:opts][:ssh_keypair_name],
17
15
  flavor_id: config[:opts][:instance_type],
18
16
  subnet_id: config[:opts][:subnet_id],
19
- image_id: image_id,
17
+ image_id: config[:opts][:image_id],
20
18
  private_ip_address: config[:ip],
21
19
  security_group_ids: security_group_ids,
22
20
  availability_zone: config[:opts][:availability_zone],
@@ -38,11 +38,13 @@ class OpsManager::ApplianceDeployment
38
38
  when current_version == desired_version then
39
39
  if pending_changes?
40
40
  puts "OpsManager at #{config[:ip]} version has pending changes. Applying changes...".green
41
- if config[:single_tile_deploy]
42
- OpsManager::InstallationRunner.trigger!("none").wait_for_result
43
- else
44
- OpsManager::InstallationRunner.trigger!.wait_for_result
41
+ products = "all"
42
+ if config[:selected_deployments]
43
+ products = config[:selected_deployments]
44
+ elsif config[:single_tile_deploy]
45
+ products = "none"
45
46
  end
47
+ OpsManager::InstallationRunner.trigger!(products).wait_for_result
46
48
  else
47
49
  puts "OpsManager at #{config[:ip]} version is already #{config[:desired_version]}. Skiping ...".green
48
50
  end
@@ -79,11 +81,13 @@ class OpsManager::ApplianceDeployment
79
81
  upload_installation_assets
80
82
  wait_for_uaa
81
83
  provision_stemcells
82
- if config[:single_tile_deploy]
83
- OpsManager::InstallationRunner.trigger!("none").wait_for_result
84
- else
85
- OpsManager::InstallationRunner.trigger!.wait_for_result
84
+ products = "all"
85
+ if config[:selected_deployments]
86
+ products = config[:selected_deployments]
87
+ elsif config[:single_tile_deploy]
88
+ products = "none"
86
89
  end
90
+ OpsManager::InstallationRunner.trigger!(products).wait_for_result
87
91
  end
88
92
 
89
93
  def list_current_stemcells
@@ -92,6 +96,9 @@ class OpsManager::ApplianceDeployment
92
96
  if p['stemcell'].fetch('os') =~ /windows/i
93
97
  product_name = "stemcells-windows-server"
94
98
  end
99
+ if p['stemcell'].fetch('os') =~ /ubuntu-xenial/i
100
+ product_name = "stemcells-ubuntu-xenial"
101
+ end
95
102
  a << { version: p['stemcell'].fetch('version'), product: product_name }
96
103
  end.uniq
97
104
  end
@@ -26,12 +26,15 @@ class OpsManager
26
26
 
27
27
  def run
28
28
  OpsManager.target_and_login(config[:target], config[:username], config[:password])
29
- if config[:single_tile_deploy]
30
- import_stemcell(config[:stemcell], [installation.guid])
31
- else
32
- import_stemcell(config[:stemcell])
29
+ products = "all"
30
+ if config[:selected_deployments]
31
+ products = config[:selected_deployments]
32
+ elsif config[:single_tile_deploy]
33
+ products = [installation.guid]
33
34
  end
34
35
 
36
+ import_stemcell(config[:stemcell], products)
37
+
35
38
  case
36
39
  when installation.nil? || forced_deployment?
37
40
  deploy
@@ -65,11 +68,14 @@ class OpsManager
65
68
  upload
66
69
  upgrade_product_installation(installation.guid, config[:desired_version])
67
70
  merge_product_installation_settings
68
- if config[:single_tile_deploy]
69
- OpsManager::InstallationRunner.trigger!([installation.guid]).wait_for_result
70
- else
71
- OpsManager::InstallationRunner.trigger!.wait_for_result
71
+
72
+ products = "all"
73
+ if config[:selected_deployments]
74
+ products = config[:selected_deployments]
75
+ elsif config[:single_tile_deploy]
76
+ products = [installation.guid]
72
77
  end
78
+ OpsManager::InstallationRunner.trigger!(products).wait_for_result
73
79
 
74
80
  puts "====> Finish!".green
75
81
  end
@@ -85,12 +91,13 @@ class OpsManager
85
91
  upload
86
92
  add_to_installation
87
93
  merge_product_installation_settings
88
- if config[:single_tile_deploy]
89
- OpsManager::InstallationRunner.trigger!([installation.guid]).wait_for_result
90
- else
91
- OpsManager::InstallationRunner.trigger!.wait_for_result
94
+ products = "all"
95
+ if config[:selected_deployments]
96
+ products = config[:selected_deployments]
97
+ elsif config[:single_tile_deploy]
98
+ products = [installation.guid]
92
99
  end
93
-
100
+ OpsManager::InstallationRunner.trigger!(products).wait_for_result
94
101
 
95
102
  puts "====> Finish!".green
96
103
  end
@@ -1,3 +1,3 @@
1
1
  class OpsManager
2
- VERSION = "0.7.11"
2
+ VERSION = "0.7.14"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ops_manager_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.11
4
+ version: 0.7.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - CompoZed
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-10-16 00:00:00.000000000 Z
11
+ date: 2019-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler