manageiq-appliance_console 7.0.1 → 7.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/.whitesource +3 -0
- data/README.md +1 -2
- data/bin/appliance_console +10 -2
- data/lib/manageiq/appliance_console/cli.rb +4 -0
- data/lib/manageiq/appliance_console/database_configuration.rb +1 -1
- data/lib/manageiq/appliance_console/message_configuration.rb +4 -0
- data/lib/manageiq/appliance_console/utilities.rb +2 -2
- data/lib/manageiq/appliance_console/version.rb +1 -1
- data/manageiq-appliance_console.gemspec +1 -1
- metadata +8 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1896708eace4f8dfb3dba1f628158b9c7a27bab56aa61393417a573db36b038
|
4
|
+
data.tar.gz: 25e543b7c8636d2f8522a8121d5b2b5fca7a14b6ed26fc1a3bcfe56614c5c5ae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8074bd6fc3eb533abb23a413415ec19627a94ca8c3d330eedf6832c86b81f61d348c3e4f9d070c1849bbf92d7b5cf1d141a880e52cbc6a19f486833ccf2dbc79
|
7
|
+
data.tar.gz: 448c18b7393ab34900d360b6103457c8a8b9f18aa90100f5da6b71f676df5f41ee24a969b9d683916b01d9bfd9db3faa28f713cc14eef42a0df01b1ccdb0f034
|
data/.travis.yml
CHANGED
data/.whitesource
ADDED
data/README.md
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
# ManageIQ::ApplianceConsole
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/manageiq-appliance_console.svg)](http://badge.fury.io/rb/manageiq-appliance_console)
|
4
|
-
[![Build Status](https://travis-ci.com/ManageIQ/manageiq-appliance_console.svg?branch=master)](https://travis-ci.com/ManageIQ/manageiq-appliance_console)
|
4
|
+
[![Build Status](https://travis-ci.com/ManageIQ/manageiq-appliance_console.svg?branch=master)](https://travis-ci.com/github/ManageIQ/manageiq-appliance_console)
|
5
5
|
[![Code Climate](https://codeclimate.com/github/ManageIQ/manageiq-appliance_console.svg)](https://codeclimate.com/github/ManageIQ/manageiq-appliance_console)
|
6
6
|
[![Test Coverage](https://codeclimate.com/github/ManageIQ/manageiq-appliance_console/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/manageiq-appliance_console/coverage)
|
7
|
-
[![Security](https://hakiri.io/github/ManageIQ/manageiq-appliance_console/master.svg)](https://hakiri.io/github/ManageIQ/manageiq-appliance_console/master)
|
8
7
|
|
9
8
|
[![Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ManageIQ/manageiq-appliance_console?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
|
10
9
|
|
data/bin/appliance_console
CHANGED
@@ -425,7 +425,11 @@ Static Network Configuration
|
|
425
425
|
say("#{selection}\n\n")
|
426
426
|
|
427
427
|
message_server = MessageServerConfiguration.new
|
428
|
-
if
|
428
|
+
if !MessageServerConfiguration.available?
|
429
|
+
say("\nMessage Server configuration is unavailable!\n")
|
430
|
+
press_any_key
|
431
|
+
raise MiqSignalError
|
432
|
+
elsif message_server.ask_questions && message_server.configure
|
429
433
|
say("\nMessage Server configured successfully.\n")
|
430
434
|
press_any_key
|
431
435
|
else
|
@@ -438,7 +442,11 @@ Static Network Configuration
|
|
438
442
|
say("#{selection}\n\n")
|
439
443
|
|
440
444
|
message_client = MessageClientConfiguration.new
|
441
|
-
if
|
445
|
+
if !MessageClientConfiguration.available?
|
446
|
+
say("\nMessage Client configuration is unavailable!\n")
|
447
|
+
press_any_key
|
448
|
+
raise MiqSignalError
|
449
|
+
elsif message_client.ask_questions && message_client.configure
|
442
450
|
say("\nMessage Client configured successfully.\n")
|
443
451
|
press_any_key
|
444
452
|
else
|
@@ -509,6 +509,8 @@ module ApplianceConsole
|
|
509
509
|
end
|
510
510
|
|
511
511
|
def message_server_config
|
512
|
+
raise "Message Server Configuration is not available" unless MessageServerConfiguration.available?
|
513
|
+
|
512
514
|
MessageServerConfiguration.new(options).configure
|
513
515
|
end
|
514
516
|
|
@@ -517,6 +519,8 @@ module ApplianceConsole
|
|
517
519
|
end
|
518
520
|
|
519
521
|
def message_client_config
|
522
|
+
raise "Message Client Configuration is not available" unless MessageClientConfiguration.available?
|
523
|
+
|
520
524
|
MessageClientConfiguration.new(options).configure
|
521
525
|
end
|
522
526
|
|
@@ -89,7 +89,7 @@ module ApplianceConsole
|
|
89
89
|
hint = "Please stop the EVM server process on all appliances in the region"
|
90
90
|
ManageIQ::ApplianceConsole::Utilities.bail_if_db_connections("preventing the setup of a database region.\n#{hint}")
|
91
91
|
log_and_feedback(__method__) do
|
92
|
-
ManageIQ::ApplianceConsole::Utilities.rake("evm:db:region",
|
92
|
+
ManageIQ::ApplianceConsole::Utilities.rake("evm:db:region", {}, {'REGION' => region, 'VERBOSE' => 'false'})
|
93
93
|
end
|
94
94
|
end
|
95
95
|
|
@@ -22,6 +22,10 @@ module ManageIQ
|
|
22
22
|
SAMPLE_CONFIG_DIR = "#{BASE_DIR}/config-sample".freeze
|
23
23
|
MIQ_CONFIG_DIR = ManageIQ::ApplianceConsole::RAILS_ROOT.join("config").freeze
|
24
24
|
|
25
|
+
def self.available?
|
26
|
+
File.exist?("#{BASE_DIR}/bin/kafka-run-class.sh")
|
27
|
+
end
|
28
|
+
|
25
29
|
def initialize(options = {})
|
26
30
|
@message_server_port = options[:message_server_port] || 9093
|
27
31
|
@message_keystore_username = options[:message_keystore_username] || "admin"
|
@@ -10,8 +10,8 @@ module ApplianceConsole
|
|
10
10
|
rake_run(task, params).success?
|
11
11
|
end
|
12
12
|
|
13
|
-
def self.rake_run(task, params)
|
14
|
-
result = AwesomeSpawn.run("rake #{task}", :chdir => ManageIQ::ApplianceConsole::RAILS_ROOT, :params => params)
|
13
|
+
def self.rake_run(task, params, env = {})
|
14
|
+
result = AwesomeSpawn.run("rake #{task}", :chdir => ManageIQ::ApplianceConsole::RAILS_ROOT, :params => params, :env => env)
|
15
15
|
ManageIQ::ApplianceConsole.logger.error(result.error) if result.failure?
|
16
16
|
result
|
17
17
|
end
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_runtime_dependency "highline", "~> 1.6.21"
|
29
29
|
spec.add_runtime_dependency "i18n", "~> 0.8"
|
30
30
|
spec.add_runtime_dependency "linux_admin", "~> 2.0"
|
31
|
-
spec.add_runtime_dependency "manageiq-password", "
|
31
|
+
spec.add_runtime_dependency "manageiq-password", "< 2"
|
32
32
|
spec.add_runtime_dependency "net-scp", "~> 1.2.1"
|
33
33
|
spec.add_runtime_dependency "optimist", "~> 3.0"
|
34
34
|
spec.add_runtime_dependency "pg"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manageiq-appliance_console
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.0.
|
4
|
+
version: 7.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ManageIQ Developers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-07-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -144,16 +144,16 @@ dependencies:
|
|
144
144
|
name: manageiq-password
|
145
145
|
requirement: !ruby/object:Gem::Requirement
|
146
146
|
requirements:
|
147
|
-
- - "
|
147
|
+
- - "<"
|
148
148
|
- !ruby/object:Gem::Version
|
149
|
-
version: '
|
149
|
+
version: '2'
|
150
150
|
type: :runtime
|
151
151
|
prerelease: false
|
152
152
|
version_requirements: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
|
-
- - "
|
154
|
+
- - "<"
|
155
155
|
- !ruby/object:Gem::Version
|
156
|
-
version: '
|
156
|
+
version: '2'
|
157
157
|
- !ruby/object:Gem::Dependency
|
158
158
|
name: net-scp
|
159
159
|
requirement: !ruby/object:Gem::Requirement
|
@@ -344,6 +344,7 @@ files:
|
|
344
344
|
- ".rubocop_cc.yml"
|
345
345
|
- ".rubocop_local.yml"
|
346
346
|
- ".travis.yml"
|
347
|
+
- ".whitesource"
|
347
348
|
- ".yamllint"
|
348
349
|
- Gemfile
|
349
350
|
- LICENSE.txt
|
@@ -409,7 +410,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
409
410
|
- !ruby/object:Gem::Version
|
410
411
|
version: '0'
|
411
412
|
requirements: []
|
412
|
-
rubygems_version: 3.
|
413
|
+
rubygems_version: 3.3.17
|
413
414
|
signing_key:
|
414
415
|
specification_version: 4
|
415
416
|
summary: ManageIQ Appliance Console
|