manageiq-appliance_console 7.0.2 → 7.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.whitesource +3 -0
- data/README.md +0 -1
- 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 +6 -6
- data/lib/manageiq/appliance_console/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48202f6a4a14265802a0e34ffcdd359715b8b07191f9dbe0a0a6b3e14ad017fd
|
4
|
+
data.tar.gz: 463a257b562ec85eccc15fcc5268079014448272d807c7b31694884e2daf0dae
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7afe58fd0ccd9153ea88aac7e7420255ac1239c8e976d2ff1b6f6a88e436c81363296225b82435504b895ec67203d63a4988f7117e9e1b16092ca57e852d8fc6
|
7
|
+
data.tar.gz: 69f6c08a40e9222e1902faf180156e88e686b3e320d0bf5be12fb67cfe649c6da814360c976254b75a9122dd45b6f9c0d651c554e11537ca9a6f86d44b4c7dd3
|
data/.whitesource
ADDED
data/README.md
CHANGED
@@ -4,7 +4,6 @@
|
|
4
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"
|
@@ -6,18 +6,18 @@ require "awesome_spawn"
|
|
6
6
|
module ManageIQ
|
7
7
|
module ApplianceConsole
|
8
8
|
module Utilities
|
9
|
-
def self.rake(task, params)
|
10
|
-
rake_run(task, params).success?
|
9
|
+
def self.rake(task, params, env = {})
|
10
|
+
rake_run(task, params, env).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
|
18
18
|
|
19
|
-
def self.rake_run!(task, params)
|
20
|
-
result = rake_run(task, params)
|
19
|
+
def self.rake_run!(task, params, env = {})
|
20
|
+
result = rake_run(task, params, env)
|
21
21
|
if result.failure?
|
22
22
|
parsed_errors = result.error.split("\n").select { |line| line.match?(/^error: /i) }.join(', ')
|
23
23
|
raise parsed_errors
|
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.5
|
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-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -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
|