manageiq-appliance_console 8.1.0 → 9.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.codeclimate.yml +1 -1
- data/CHANGELOG.md +10 -1
- data/bin/appliance_console +0 -155
- data/lib/manageiq/appliance_console/cli.rb +0 -1
- data/lib/manageiq/appliance_console/prompts.rb +0 -20
- data/lib/manageiq/appliance_console/version.rb +1 -1
- data/locales/appliance/en.yml +1 -3
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a97381a8401fe4bca6637ed905ead74a593f7442c34a824f0091a455b157140a
|
4
|
+
data.tar.gz: bc909c5a470d8ad361c403e2f4028f83c921db32d7ac0f8e5e651bd54e68c18b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: becba0dc1ce0328af521795b80ca99166a18db2837cfd089ce48c1d75860a814f7c6b3915afc3cfecc4a6e8fa631ee2b71e262710a8a2e9525357fcea01f1041
|
7
|
+
data.tar.gz: 4301e2fe2d5762840a2ef1c3218066b8052f1431282ae6e341b61902e5a446172d4cdaa447277280726bb4ae71b324f0fd5c1048982b8c80c88748d82d3ae53e
|
data/.codeclimate.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -4,6 +4,13 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
4
4
|
|
5
5
|
## [Unreleased]
|
6
6
|
|
7
|
+
## [9.0.0] - 2024-03-05
|
8
|
+
### Changed
|
9
|
+
- Update codeclimate channel to the latest in manageiq-style [[#237]](https://github.com/ManageIQ/manageiq-appliance_console/pull/237)
|
10
|
+
|
11
|
+
### Removed
|
12
|
+
- **BREAKING** Remove network configuration from the appliance console [[#238]](https://github.com/ManageIQ/manageiq-appliance_console/pull/238)
|
13
|
+
|
7
14
|
## [8.1.0] - 2024-02-07
|
8
15
|
### Fixed
|
9
16
|
- Fix sporadic test failure [[#204]](https://github.com/ManageIQ/manageiq-appliance_console/pull/204)
|
@@ -247,7 +254,9 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|
247
254
|
|
248
255
|
## [1.0.0] - 2017-10-19
|
249
256
|
|
250
|
-
[Unreleased]: https://github.com/ManageIQ/manageiq-appliance_console/compare/
|
257
|
+
[Unreleased]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v9.0.0...HEAD
|
258
|
+
[8.1.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v8.1.0...v9.0.0
|
259
|
+
[8.1.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v8.0.0...v8.1.0
|
251
260
|
[8.0.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v7.2.2...v8.0.0
|
252
261
|
[7.2.2]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v7.2.1...v7.2.2
|
253
262
|
[7.2.1]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v7.2.0...v7.2.1
|
data/bin/appliance_console
CHANGED
@@ -149,161 +149,6 @@ To modify the configuration, use a web browser to access the management page.
|
|
149
149
|
clear_screen
|
150
150
|
selection = ask_with_menu("Advanced Setting", AS_OPTIONS, nil, true)
|
151
151
|
case selection
|
152
|
-
when I18n.t('advanced_settings.networking')
|
153
|
-
options = {
|
154
|
-
'Set DHCP Network Configuration' => 'dhcp',
|
155
|
-
'Set IPv4 Static Network Configuration' => 'static',
|
156
|
-
'Set IPv6 Static Network Configuration' => 'static6',
|
157
|
-
'Test Network Configuration' => 'testnet',
|
158
|
-
'Set Hostname' => 'hostname'
|
159
|
-
}
|
160
|
-
case ask_with_menu('Network Configuration', options)
|
161
|
-
when 'dhcp'
|
162
|
-
say("DHCP Network Configuration\n\n")
|
163
|
-
|
164
|
-
ipv4 = agree('Enable DHCP for IPv4 network configuration? (Y/N): ')
|
165
|
-
ipv6 = agree('Enable DHCP for IPv6 network configuration? (Y/N): ')
|
166
|
-
|
167
|
-
if ipv4 || ipv6
|
168
|
-
say("\nApplying DHCP network configuration...")
|
169
|
-
|
170
|
-
resolv = LinuxAdmin::Dns.new
|
171
|
-
resolv.search_order = []
|
172
|
-
resolv.nameservers = []
|
173
|
-
resolv.save
|
174
|
-
|
175
|
-
eth0.enable_dhcp if ipv4
|
176
|
-
eth0.enable_dhcp6 if ipv6
|
177
|
-
eth0.save
|
178
|
-
|
179
|
-
File.write(CLOUD_INIT_NETWORK_CONFIG_FILE, CLOUD_INIT_DISABLE_NETWORK_CONFIG)
|
180
|
-
say("\nAfter completing the appliance configuration, please restart #{I18n.t("product.name")} server processes.")
|
181
|
-
press_any_key
|
182
|
-
end
|
183
|
-
when 'static'
|
184
|
-
say("Static Network Configuration\n\n")
|
185
|
-
say("Enter the new static network configuration settings.\n\n")
|
186
|
-
|
187
|
-
new_ip = ask_for_ipv4("IP Address", ip)
|
188
|
-
new_mask = ask_for_ipv4("Netmask", mask)
|
189
|
-
new_gw = ask_for_ipv4("Gateway", gw)
|
190
|
-
new_dns1 = ask_for_ip("Primary DNS", dns1)
|
191
|
-
new_dns2 = ask_for_ip_or_none("Secondary DNS (Enter 'none' for no value)", dns2)
|
192
|
-
|
193
|
-
new_search_order = ask_for_many("domain", "Domain search order", order)
|
194
|
-
|
195
|
-
clear_screen
|
196
|
-
say(<<-EOL)
|
197
|
-
Static Network Configuration
|
198
|
-
|
199
|
-
IP Address: #{new_ip}
|
200
|
-
Netmask: #{new_mask}
|
201
|
-
Gateway: #{new_gw}
|
202
|
-
Primary DNS: #{new_dns1}
|
203
|
-
Secondary DNS: #{new_dns2}
|
204
|
-
Search Order: #{new_search_order.join(" ")}
|
205
|
-
|
206
|
-
EOL
|
207
|
-
|
208
|
-
if agree("Apply static network configuration? (Y/N)")
|
209
|
-
say("\nApplying static network configuration...")
|
210
|
-
|
211
|
-
resolv = LinuxAdmin::Dns.new
|
212
|
-
resolv.search_order = []
|
213
|
-
resolv.nameservers = []
|
214
|
-
resolv.save
|
215
|
-
|
216
|
-
begin
|
217
|
-
network_configured = eth0.apply_static(new_ip, new_mask, new_gw, [new_dns1, new_dns2], new_search_order)
|
218
|
-
rescue ArgumentError => e
|
219
|
-
say("\nNetwork configuration failed: #{e.message}")
|
220
|
-
press_any_key
|
221
|
-
next
|
222
|
-
end
|
223
|
-
|
224
|
-
unless network_configured
|
225
|
-
say("\nNetwork interface failed to start using the values supplied.")
|
226
|
-
press_any_key
|
227
|
-
next
|
228
|
-
end
|
229
|
-
|
230
|
-
File.write(CLOUD_INIT_NETWORK_CONFIG_FILE, CLOUD_INIT_DISABLE_NETWORK_CONFIG)
|
231
|
-
say("\nAfter completing the appliance configuration, please restart #{I18n.t("product.name")} server processes.")
|
232
|
-
press_any_key
|
233
|
-
end
|
234
|
-
|
235
|
-
when 'static6'
|
236
|
-
say("IPv6: Static Network Configuration\n\n")
|
237
|
-
say("Enter the new static network configuration settings.\n\n")
|
238
|
-
|
239
|
-
new_ip = ask_for_ipv6('IP Address', eth0.address6)
|
240
|
-
new_prefix = ask_for_integer('IPv6 prefix length', 1..127, eth0.prefix6 || 64)
|
241
|
-
new_gw = ask_for_ipv6('Default gateway', eth0.gateway6)
|
242
|
-
new_dns1 = ask_for_ip('Primary DNS', dns1)
|
243
|
-
new_dns2 = ask_for_ip_or_none("Secondary DNS (Enter 'none' for no value)", dns2)
|
244
|
-
|
245
|
-
new_search_order = ask_for_many('domain', 'Domain search order', order)
|
246
|
-
|
247
|
-
clear_screen
|
248
|
-
say(<<-EOL)
|
249
|
-
Static Network Configuration
|
250
|
-
|
251
|
-
IP Address: #{new_ip}/#{new_prefix}
|
252
|
-
Gateway: #{new_gw}
|
253
|
-
Primary DNS: #{new_dns1}
|
254
|
-
Secondary DNS: #{new_dns2}
|
255
|
-
Search Order: #{new_search_order.join(" ")}
|
256
|
-
|
257
|
-
EOL
|
258
|
-
|
259
|
-
if agree('Apply static network configuration? (Y/N)')
|
260
|
-
say("\nApplying static network configuration...")
|
261
|
-
|
262
|
-
resolv = LinuxAdmin::Dns.new
|
263
|
-
resolv.search_order = []
|
264
|
-
resolv.nameservers = []
|
265
|
-
resolv.save
|
266
|
-
|
267
|
-
begin
|
268
|
-
network_configured = eth0.apply_static6(new_ip, new_prefix, new_gw, [new_dns1, new_dns2], new_search_order)
|
269
|
-
rescue ArgumentError => e
|
270
|
-
say("\nNetwork configuration failed: #{e.message}")
|
271
|
-
press_any_key
|
272
|
-
next
|
273
|
-
end
|
274
|
-
|
275
|
-
unless network_configured
|
276
|
-
say("\nNetwork interface failed to start using the values supplied.")
|
277
|
-
press_any_key
|
278
|
-
next
|
279
|
-
end
|
280
|
-
|
281
|
-
File.write(CLOUD_INIT_NETWORK_CONFIG_FILE, CLOUD_INIT_DISABLE_NETWORK_CONFIG)
|
282
|
-
say("\nAfter completing the appliance configuration, please restart #{I18n.t("product.name")} server processes.")
|
283
|
-
press_any_key
|
284
|
-
end
|
285
|
-
|
286
|
-
when 'testnet'
|
287
|
-
ManageIQ::ApplianceConsole::Utilities.test_network
|
288
|
-
|
289
|
-
when 'hostname'
|
290
|
-
say("Hostname Configuration\n\n")
|
291
|
-
new_host = just_ask("new hostname", host, HOSTNAME_REGEXP, "Please enter a valid hostname")
|
292
|
-
|
293
|
-
if new_host != host
|
294
|
-
say("Applying new hostname...")
|
295
|
-
system_hosts = LinuxAdmin::Hosts.new
|
296
|
-
|
297
|
-
system_hosts.parsed_file.each { |line| line[:hosts].to_a.delete(host) } unless host =~ /^localhost.*/
|
298
|
-
|
299
|
-
system_hosts.hostname = new_host
|
300
|
-
system_hosts.set_loopback_hostname(new_host)
|
301
|
-
system_hosts.save
|
302
|
-
|
303
|
-
press_any_key
|
304
|
-
end
|
305
|
-
end
|
306
|
-
|
307
152
|
when I18n.t("advanced_settings.httpdauth")
|
308
153
|
say("#{selection}\n\n")
|
309
154
|
|
@@ -67,26 +67,6 @@ module ApplianceConsole
|
|
67
67
|
just_ask(prompt, default, validate, error_text, &block)
|
68
68
|
end
|
69
69
|
|
70
|
-
def ask_for_ip_or_none(prompt, default = nil)
|
71
|
-
ask_for_ip(prompt, default, Regexp.union(NONE_REGEXP, IP_REGEXP)).gsub(NONE_REGEXP, "")
|
72
|
-
end
|
73
|
-
|
74
|
-
def ask_for_ipv4(prompt, default)
|
75
|
-
ask_for_ip(prompt, default, IPV4_REGEXP)
|
76
|
-
end
|
77
|
-
|
78
|
-
def ask_for_ipv4_or_none(prompt, default = nil)
|
79
|
-
ask_for_ip(prompt, default, Regexp.union(NONE_REGEXP, IPV4_REGEXP)).gsub(NONE_REGEXP, "")
|
80
|
-
end
|
81
|
-
|
82
|
-
def ask_for_ipv6(prompt, default)
|
83
|
-
ask_for_ip(prompt, default, IPV6_REGEXP)
|
84
|
-
end
|
85
|
-
|
86
|
-
def ask_for_ipv6_or_none(prompt, default = nil)
|
87
|
-
ask_for_ip(prompt, default, Regexp.union(IPV6_REGEXP, NONE_REGEXP)).gsub(NONE_REGEXP, '')
|
88
|
-
end
|
89
|
-
|
90
70
|
def ask_for_hostname(prompt, default = nil, validate = HOSTNAME_REGEXP, error_text = "a valid Hostname.", &block)
|
91
71
|
just_ask(prompt, default, validate, error_text, &block)
|
92
72
|
end
|
data/locales/appliance/en.yml
CHANGED
@@ -4,7 +4,6 @@ en:
|
|
4
4
|
name: ManageIQ
|
5
5
|
advanced_settings:
|
6
6
|
menu_order:
|
7
|
-
- networking
|
8
7
|
- dbbackup
|
9
8
|
- dbdump
|
10
9
|
- dbrestore
|
@@ -21,7 +20,6 @@ en:
|
|
21
20
|
- shutdown
|
22
21
|
- summary
|
23
22
|
- quit
|
24
|
-
networking: Configure Network
|
25
23
|
dbbackup: Create Database Backup
|
26
24
|
dbdump: Create Database Dump
|
27
25
|
dbrestore: Restore Database From Backup
|
@@ -41,4 +39,4 @@ en:
|
|
41
39
|
database_admin:
|
42
40
|
local: Local file
|
43
41
|
sample_url:
|
44
|
-
nfs: nfs://host.
|
42
|
+
nfs: nfs://host.example.com/exported/my_exported_folder/db.backup
|
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: 9.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-03-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activerecord
|
@@ -386,7 +386,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
386
386
|
- !ruby/object:Gem::Version
|
387
387
|
version: '0'
|
388
388
|
requirements: []
|
389
|
-
rubygems_version: 3.
|
389
|
+
rubygems_version: 3.3.26
|
390
390
|
signing_key:
|
391
391
|
specification_version: 4
|
392
392
|
summary: ManageIQ Appliance Console
|