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 +4 -4
- data/CHANGELOG.md +29 -0
- data/Dockerfile +8 -3
- data/lib/ops_manager/appliance/aws.rb +1 -3
- data/lib/ops_manager/appliance_deployment.rb +15 -8
- data/lib/ops_manager/product_deployment.rb +20 -13
- data/lib/ops_manager/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ee5a9bff7eaf8b7173c9e4e4b5d2bfa95cad310e
|
4
|
+
data.tar.gz: 9f167f4715184828677892aabbfcf6f2bf0c2bce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e435c487df21a31cd91e5b2eb1f96faa8e55b11470f4b156d821de0829ef45e084c117ba009e9aa69be64e29c05014b63a18643ea21b3040c5200837d0af6d93
|
7
|
+
data.tar.gz: 295e443dd6b68eb53ef2f882cc8169e4dc8cc6d7deafe59c90b72ce31674d6875d01c593914c957f287044d3a7056039ee0bfd9ca8331d100ebbcde6dca492c0
|
data/CHANGELOG.md
CHANGED
@@ -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.
|
5
|
-
ENV SPRUCE_VERSION 1.
|
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 -
|
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
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
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
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
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
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
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
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
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
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
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
|
data/lib/ops_manager/version.rb
CHANGED
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.
|
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:
|
11
|
+
date: 2019-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|