manageiq-appliance_console 9.1.0 → 10.0.0
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/.github/workflows/ci.yaml +4 -4
- data/CHANGELOG.md +17 -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/external_httpd_authentication/external_httpd_configuration.rb +1 -1
- data/lib/manageiq/appliance_console/saml_authentication.rb +3 -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: 114da6d51544c06e88b38816c7f8ffec7cdad12b4aca57220b50b3a129fb3b25
|
4
|
+
data.tar.gz: e5cb078ac27fda7594a858cd9bfcb8d2717320e455a2dc253c376cf7b62fcda3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f0f02de6f6b2f7468fde2d2b8f7e998ca24f35dd2217ea70ec1ffbd29375eab5a9751792369a32d203d4acd0fe9c19e8b382936d61fdfbfbf3c2fb5320ef9bc8
|
7
|
+
data.tar.gz: 2bd7369d0799a0061616d8cc1c5abd0656773b26df4eeccf1458f266bb43827d134b11d1c31244253fea2ef731b12071ad3a16296e9b95f05308336ffb86fedc
|
data/.github/workflows/ci.yaml
CHANGED
@@ -11,11 +11,11 @@ jobs:
|
|
11
11
|
strategy:
|
12
12
|
matrix:
|
13
13
|
ruby-version:
|
14
|
-
- '3.0'
|
15
14
|
- '3.1'
|
15
|
+
- '3.3'
|
16
16
|
rails-version:
|
17
|
-
- '6.1'
|
18
17
|
- '7.0'
|
18
|
+
- '7.1'
|
19
19
|
services:
|
20
20
|
postgres:
|
21
21
|
image: manageiq/postgresql:13
|
@@ -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.3' && matrix.rails-version == '7.1' }}
|
46
46
|
continue-on-error: true
|
47
|
-
uses: paambaati/codeclimate-action@
|
47
|
+
uses: paambaati/codeclimate-action@v9
|
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,20 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
|
5
5
|
## [Unreleased]
|
6
6
|
|
7
|
+
## [10.0.0] - 2024-11-19
|
8
|
+
### Added
|
9
|
+
- Test with ruby 3.3 [[#269](https://github.com/ManageIQ/manageiq-appliance_console/pull/269)]
|
10
|
+
|
11
|
+
### Changed
|
12
|
+
- **BREAKING** Store saml remote user configuration separately from sssd lookup [[#265](https://github.com/ManageIQ/manageiq-appliance_console/pull/265)]
|
13
|
+
|
14
|
+
### Fixed
|
15
|
+
- Fix warnings on newer ERB versions [[#267](https://github.com/ManageIQ/manageiq-appliance_console/pull/267)]
|
16
|
+
|
17
|
+
## [9.1.1] - 2024-08-13
|
18
|
+
### Changed
|
19
|
+
- Don't depend on eth0 for displaying network information [[#263](https://github.com/ManageIQ/manageiq-appliance_console/pull/263)]
|
20
|
+
|
7
21
|
## [9.1.0] - 2024-07-24
|
8
22
|
### Added
|
9
23
|
- Add a common method for asking for a password [[#251](https://github.com/ManageIQ/manageiq-appliance_console/pull/251)]
|
@@ -285,7 +299,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
285
299
|
|
286
300
|
## [1.0.0] - 2017-10-19
|
287
301
|
|
288
|
-
[Unreleased]: https://github.com/ManageIQ/manageiq-appliance_console/compare/
|
302
|
+
[Unreleased]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v10.0.0...HEAD
|
303
|
+
[10.0.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v9.1.1...v10.0.0
|
304
|
+
[9.1.1]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v9.1.0...v9.1.1
|
289
305
|
[9.1.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v9.0.3...v9.1.0
|
290
306
|
[9.0.3]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v9.0.2...v9.0.3
|
291
307
|
[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
|
|
data/lib/manageiq/appliance_console/external_httpd_authentication/external_httpd_configuration.rb
CHANGED
@@ -201,7 +201,7 @@ module ApplianceConsole
|
|
201
201
|
src_path = path_join(src_dir, file)
|
202
202
|
dest_path = path_join(dest_dir, file.gsub(".erb", ""))
|
203
203
|
if src_path.to_s.include?(".erb")
|
204
|
-
File.write(dest_path, ERB.new(File.read(src_path),
|
204
|
+
File.write(dest_path, ERB.new(File.read(src_path), trim_mode: '-').result(binding))
|
205
205
|
else
|
206
206
|
FileUtils.cp src_path, dest_path
|
207
207
|
end
|
@@ -90,13 +90,15 @@ module ManageIQ
|
|
90
90
|
|
91
91
|
def copy_apache_saml_configfiles
|
92
92
|
debug_msg("Copying Apache SAML Config files ...")
|
93
|
-
copy_template(HTTPD_CONFIG_DIRECTORY, "manageiq-remote-user.conf")
|
93
|
+
copy_template(HTTPD_CONFIG_DIRECTORY, "manageiq-remote-user-saml.conf")
|
94
94
|
copy_template(HTTPD_CONFIG_DIRECTORY, "manageiq-external-auth-saml.conf")
|
95
95
|
end
|
96
96
|
|
97
97
|
def remove_apache_saml_configfiles
|
98
98
|
debug_msg("Removing Apache SAML Config files ...")
|
99
|
+
# legacy systems may have manageiq-remote-user.conf instead of manageiq-remote-user-saml.conf
|
99
100
|
remove_file(HTTPD_CONFIG_DIRECTORY.join("manageiq-remote-user.conf"))
|
101
|
+
remove_file(HTTPD_CONFIG_DIRECTORY.join("manageiq-remote-user-saml.conf"))
|
100
102
|
remove_file(HTTPD_CONFIG_DIRECTORY.join("manageiq-external-auth-saml.conf"))
|
101
103
|
end
|
102
104
|
|
@@ -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:
|
4
|
+
version: 10.0.0
|
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-11-19 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
|