manageiq-appliance_console 9.1.0 → 9.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yaml +1 -1
- data/CHANGELOG.md +6 -1
- data/bin/appliance_console +19 -17
- data/lib/manageiq/appliance_console/database_replication.rb +4 -0
- data/lib/manageiq/appliance_console/database_replication_primary.rb +1 -1
- data/lib/manageiq/appliance_console/database_replication_standby.rb +1 -1
- data/lib/manageiq/appliance_console/version.rb +1 -1
- data/manageiq-appliance_console.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92c044bd2f3d92f8d58e493c00f95305372fd4954c7e66f9b352093311450976
|
4
|
+
data.tar.gz: 8b61325b1fe64b83f7160225c7aeae2b91ac415a48089c4bb387120d76446ee3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c063b69eee1a7b04a4e3a08c96a78679969e4903e670fb3018e4f6ce1325f76b1168f20064530b0781b8badff3376740413067cc9cffa8c37a69c3c09dc4b697
|
7
|
+
data.tar.gz: 4e390849ca9978b98501214c0f80de65e854f82d1fb3ae1c449da07cb6d8db5fe6df26ea0c2b518708b2db139bef0eb9fa99271f78d865437dc377627214bb76
|
data/.github/workflows/ci.yaml
CHANGED
@@ -42,6 +42,6 @@ jobs:
|
|
42
42
|
- name: Run tests
|
43
43
|
run: bundle exec rake
|
44
44
|
- name: Report code coverage
|
45
|
-
if:
|
45
|
+
if: ${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.1' && matrix.rails-version == '7.0' }}
|
46
46
|
continue-on-error: true
|
47
47
|
uses: paambaati/codeclimate-action@v8
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,10 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
|
5
5
|
## [Unreleased]
|
6
6
|
|
7
|
+
## [9.1.1] - 2024-08-13
|
8
|
+
### Changed
|
9
|
+
- Don't depend on eth0 for displaying network information [[#263](https://github.com/ManageIQ/manageiq-appliance_console/pull/263)]
|
10
|
+
|
7
11
|
## [9.1.0] - 2024-07-24
|
8
12
|
### Added
|
9
13
|
- Add a common method for asking for a password [[#251](https://github.com/ManageIQ/manageiq-appliance_console/pull/251)]
|
@@ -285,7 +289,8 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
285
289
|
|
286
290
|
## [1.0.0] - 2017-10-19
|
287
291
|
|
288
|
-
[Unreleased]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v9.1.
|
292
|
+
[Unreleased]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v9.1.1...HEAD
|
293
|
+
[9.1.1]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v9.1.0...v9.1.1
|
289
294
|
[9.1.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v9.0.3...v9.1.0
|
290
295
|
[9.0.3]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v9.0.2...v9.0.3
|
291
296
|
[9.0.2]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v9.0.1...v9.0.2
|
data/bin/appliance_console
CHANGED
@@ -72,13 +72,13 @@ RE_RESTART = "Restart".freeze
|
|
72
72
|
RE_DELLOGS = "Restart and Clean Logs".freeze
|
73
73
|
RE_OPTIONS = [RE_RESTART, RE_DELLOGS, ManageIQ::ApplianceConsole::CANCEL].freeze
|
74
74
|
|
75
|
-
NETWORK_INTERFACE = "eth0".freeze
|
76
75
|
CLOUD_INIT_NETWORK_CONFIG_FILE = "/etc/cloud/cloud.cfg.d/99_miq_disable_network_config.cfg".freeze
|
77
76
|
CLOUD_INIT_DISABLE_NETWORK_CONFIG = "network: {config: disabled}\n".freeze
|
78
77
|
|
79
78
|
module ManageIQ
|
80
79
|
module ApplianceConsole
|
81
|
-
|
80
|
+
# Get a list of network interfaces
|
81
|
+
nics = LinuxAdmin::NetworkInterface.list.reject(&:loopback?)
|
82
82
|
# Because it takes a few seconds, get the region once in the outside loop
|
83
83
|
region = ManageIQ::ApplianceConsole::DatabaseConfiguration.region
|
84
84
|
|
@@ -88,15 +88,8 @@ module ApplianceConsole
|
|
88
88
|
|
89
89
|
loop do
|
90
90
|
begin
|
91
|
-
dns
|
92
|
-
eth0.reload
|
93
|
-
eth0.parse_conf if eth0.respond_to?(:parse_conf)
|
94
|
-
|
91
|
+
dns = LinuxAdmin::Dns.new
|
95
92
|
host = LinuxAdmin::Hosts.new.hostname
|
96
|
-
ip = eth0.address
|
97
|
-
mac = eth0.mac_address
|
98
|
-
mask = eth0.netmask
|
99
|
-
gw = eth0.gateway
|
100
93
|
dns1, dns2 = dns.nameservers
|
101
94
|
order = dns.search_order.join(' ')
|
102
95
|
timezone = LinuxAdmin::TimeDate.system_timezone
|
@@ -113,16 +106,25 @@ module ApplianceConsole
|
|
113
106
|
"not configured"
|
114
107
|
end
|
115
108
|
|
116
|
-
summary_attributes = [
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
109
|
+
summary_attributes = [summary_entry("Hostname", host)]
|
110
|
+
|
111
|
+
nics.each(&:reload)
|
112
|
+
nics.each do |nic|
|
113
|
+
next if nic.address.nil? && nic.address6.nil?
|
114
|
+
|
115
|
+
summary_attributes += [
|
116
|
+
summary_entry("#{nic.interface} IPv4 Address", "#{nic.address}/#{nic.prefix}"),
|
117
|
+
summary_entry("#{nic.interface} IPv4 Gateway", nic.gateway),
|
118
|
+
summary_entry("#{nic.interface} IPv6 Address", nic.address6 ? "#{nic.address6}/#{nic.prefix6}" : ""),
|
119
|
+
summary_entry("#{nic.interface} IPv6 Gateway", nic.gateway6),
|
120
|
+
summary_entry("#{nic.interface} MAC Address", nic.mac_address)
|
121
|
+
]
|
122
|
+
end
|
123
|
+
|
124
|
+
summary_attributes += [
|
122
125
|
summary_entry("Primary DNS", dns1),
|
123
126
|
summary_entry("Secondary DNS", dns2),
|
124
127
|
summary_entry("Search Order", order),
|
125
|
-
summary_entry("MAC Address", mac),
|
126
128
|
summary_entry("Timezone", timezone),
|
127
129
|
summary_entry("Local Database Server", PostgresAdmin.local_server_status),
|
128
130
|
summary_entry("#{I18n.t("product.name")} Server", evm_status),
|
@@ -25,6 +25,10 @@ module ApplianceConsole
|
|
25
25
|
attr_accessor :node_number, :database_name, :database_user,
|
26
26
|
:database_password, :primary_host
|
27
27
|
|
28
|
+
def network_interfaces
|
29
|
+
@network_interfaces ||= LinuxAdmin::NetworkInterface.list.reject(&:loopback?)
|
30
|
+
end
|
31
|
+
|
28
32
|
def ask_for_unique_cluster_node_number
|
29
33
|
self.node_number = ask_for_integer("number uniquely identifying this node in the replication cluster")
|
30
34
|
end
|
@@ -10,7 +10,7 @@ module ApplianceConsole
|
|
10
10
|
self.database_name = "vmdb_production"
|
11
11
|
self.database_user = "root"
|
12
12
|
self.database_password = nil
|
13
|
-
self.primary_host =
|
13
|
+
self.primary_host = network_interfaces.first&.address
|
14
14
|
end
|
15
15
|
|
16
16
|
def ask_questions
|
@@ -17,7 +17,7 @@ module ApplianceConsole
|
|
17
17
|
self.database_user = "root"
|
18
18
|
self.database_password = nil
|
19
19
|
self.primary_host = nil
|
20
|
-
self.standby_host =
|
20
|
+
self.standby_host = network_interfaces.first&.address
|
21
21
|
self.resync_data = false
|
22
22
|
end
|
23
23
|
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |spec|
|
|
28
28
|
spec.add_runtime_dependency "ed25519", ">= 1.2", "< 2.0"
|
29
29
|
spec.add_runtime_dependency "highline", "~> 2.1"
|
30
30
|
spec.add_runtime_dependency "i18n", ">= 0.8"
|
31
|
-
spec.add_runtime_dependency "linux_admin", "~>
|
31
|
+
spec.add_runtime_dependency "linux_admin", "~> 4.0"
|
32
32
|
spec.add_runtime_dependency "manageiq-password", "< 2"
|
33
33
|
spec.add_runtime_dependency "net-scp", "~> 4.0"
|
34
34
|
spec.add_runtime_dependency "net-ssh", "~> 7.2"
|
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: 9.1.
|
4
|
+
version: 9.1.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: 2024-
|
11
|
+
date: 2024-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -140,14 +140,14 @@ dependencies:
|
|
140
140
|
requirements:
|
141
141
|
- - "~>"
|
142
142
|
- !ruby/object:Gem::Version
|
143
|
-
version: '
|
143
|
+
version: '4.0'
|
144
144
|
type: :runtime
|
145
145
|
prerelease: false
|
146
146
|
version_requirements: !ruby/object:Gem::Requirement
|
147
147
|
requirements:
|
148
148
|
- - "~>"
|
149
149
|
- !ruby/object:Gem::Version
|
150
|
-
version: '
|
150
|
+
version: '4.0'
|
151
151
|
- !ruby/object:Gem::Dependency
|
152
152
|
name: manageiq-password
|
153
153
|
requirement: !ruby/object:Gem::Requirement
|
@@ -401,7 +401,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
401
401
|
- !ruby/object:Gem::Version
|
402
402
|
version: '0'
|
403
403
|
requirements: []
|
404
|
-
rubygems_version: 3.
|
404
|
+
rubygems_version: 3.3.27
|
405
405
|
signing_key:
|
406
406
|
specification_version: 4
|
407
407
|
summary: ManageIQ Appliance Console
|