manageiq-appliance_console 5.3.0 → 5.3.1
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7c04199e075927842681f7aad9d1cc81fd7be4320e9a30ece2e18bf2c8188567
|
4
|
+
data.tar.gz: 207f9b85fbb22c346a531423b36a1d10de707567f1679f829d73ee7f5c3d0068
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b87201ac79bde869f66484e431a75f5f13adefc3bd0a92c76f7b9bef9b0f8bdd2156a78386fd37315754727c578d9583517f2240eabe994df51f54419f64a9a0
|
7
|
+
data.tar.gz: c72233eadfb6a07f50ac53df833246d048b1d319afc7a257a1d50c989a94bf92bb570697e5b5d9ba38378af405c7c25fe260c68f0e45d1e72ff00c847c907b28
|
data/Gemfile
CHANGED
data/bin/appliance_console
CHANGED
@@ -19,8 +19,6 @@ include HighLine::SystemExtensions
|
|
19
19
|
|
20
20
|
require 'manageiq/appliance_console/i18n'
|
21
21
|
|
22
|
-
SCAP_RULES_DIR = File.expand_path("productization/appliance_console/config", ManageIQ::ApplianceConsole::RAILS_ROOT)
|
23
|
-
|
24
22
|
$terminal.wrap_at = 80
|
25
23
|
$terminal.page_at = 35
|
26
24
|
|
@@ -280,7 +278,7 @@ Static Network Configuration
|
|
280
278
|
|
281
279
|
when 'hostname'
|
282
280
|
say("Hostname Configuration\n\n")
|
283
|
-
new_host = just_ask("new hostname", host)
|
281
|
+
new_host = just_ask("new hostname", host, HOSTNAME_REGEXP, "Please enter a valid hostname")
|
284
282
|
|
285
283
|
if new_host != host
|
286
284
|
say("Applying new hostname...")
|
@@ -538,7 +536,7 @@ Static Network Configuration
|
|
538
536
|
|
539
537
|
when I18n.t("advanced_settings.scap")
|
540
538
|
say("#{selection}\n\n")
|
541
|
-
ManageIQ::ApplianceConsole::Scap.new
|
539
|
+
ManageIQ::ApplianceConsole::Scap.new.lockdown
|
542
540
|
press_any_key
|
543
541
|
|
544
542
|
when I18n.t("advanced_settings.summary")
|
@@ -8,9 +8,6 @@ unless defined?(say)
|
|
8
8
|
end
|
9
9
|
end
|
10
10
|
|
11
|
-
# define SCAP_RULES_DIR for scap fucntionality
|
12
|
-
SCAP_RULES_DIR = File.expand_path("productization/appliance_console/config", ManageIQ::ApplianceConsole::RAILS_ROOT)
|
13
|
-
|
14
11
|
module ManageIQ
|
15
12
|
module ApplianceConsole
|
16
13
|
class CliError < StandardError; end
|
@@ -355,7 +352,7 @@ module ApplianceConsole
|
|
355
352
|
|
356
353
|
def openscap
|
357
354
|
say("Configuring Openscap")
|
358
|
-
ManageIQ::ApplianceConsole::Scap.new
|
355
|
+
ManageIQ::ApplianceConsole::Scap.new.lockdown
|
359
356
|
end
|
360
357
|
|
361
358
|
def config_tmp_disk
|
@@ -13,7 +13,7 @@ module ApplianceConsole
|
|
13
13
|
DOMAIN_REGEXP = /^[a-z0-9]+([\-\.]{1}[a-z0-9]+)*(\.[a-z]{2,13})?$/
|
14
14
|
INT_REGEXP = /^[0-9]+$/
|
15
15
|
NONE_REGEXP = /^('?NONE'?)?$/i.freeze
|
16
|
-
HOSTNAME_REGEXP = /^(([a-zA-
|
16
|
+
HOSTNAME_REGEXP = /^(([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9\-]{0,61}[a-zA-Z0-9])\.)*([A-Za-z0-9]|[A-Za-z0-9][A-Za-z0-9\-]*[A-Za-z0-9])$/.freeze
|
17
17
|
|
18
18
|
def ask_for_uri(prompt, expected_scheme, opts = {})
|
19
19
|
require 'uri'
|
@@ -3,7 +3,9 @@ require 'linux_admin'
|
|
3
3
|
module ManageIQ
|
4
4
|
module ApplianceConsole
|
5
5
|
class Scap
|
6
|
-
|
6
|
+
RULES_DIR = File.expand_path("productization/appliance_console/config", ManageIQ::ApplianceConsole::RAILS_ROOT).freeze
|
7
|
+
|
8
|
+
def initialize(rules_dir = RULES_DIR)
|
7
9
|
@rules_dir = rules_dir
|
8
10
|
end
|
9
11
|
|
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: 5.3.
|
4
|
+
version: 5.3.1
|
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: 2020-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -310,7 +310,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
310
310
|
- !ruby/object:Gem::Version
|
311
311
|
version: '0'
|
312
312
|
requirements: []
|
313
|
-
|
313
|
+
rubyforge_project:
|
314
|
+
rubygems_version: 2.7.6.2
|
314
315
|
signing_key:
|
315
316
|
specification_version: 4
|
316
317
|
summary: ManageIQ Appliance Console
|