manageiq-appliance_console 7.2.2 → 8.1.0

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: 021c433c615f94bacc4ff3451b4ba8a1b4ec06314a6b904878af06955045bd01
4
- data.tar.gz: 6b9645b97157b890b7fa9070b9ce92cb144c925b3546fecf244dd5b67fcf475c
3
+ metadata.gz: 4c421558ac5d09a9a2c9a05578485e45b8416b7e0a48890927107981c372f66c
4
+ data.tar.gz: 2920a60b6515d7c350c4caea1323c3ace4a67eead3ea2b57dafae9faab97b1ae
5
5
  SHA512:
6
- metadata.gz: 1e44783d9a5c85c2fc9773bd8c262cd726131a622e84e96e5d4e77b88b20512bec97828238be1ac58ed2872809b5af2d90cb25119344fc6df8f962911ad81442
7
- data.tar.gz: 3d8c40bb89caa6e6aee9b5703f8d1982f895117aba2b0fa5d09bf29a89f20fd270e1c220da48573c9acb8a2b6a4078b40bbb8811045ee428ddfeb650965a11db
6
+ metadata.gz: 1b64ff9515d346f1f26a2121f74017ce3d11ecc153d609a8d87f76f34a2af64abdee371ecda3f77503a472f7719166bff8d0e5d11457276092faf2908e9f8276
7
+ data.tar.gz: b80470a632d479c4e8d73914cf7d9105e2ee18f2bc486d6e1f7b5c463b66f9174a1a15165c1a9e81a37a4bf843c0968761ab01128f54f1400c2d5a385bcff33b
@@ -0,0 +1,47 @@
1
+ ---
2
+ name: CI
3
+ on:
4
+ push:
5
+ pull_request:
6
+ schedule:
7
+ - cron: 0 0 * * 0
8
+ jobs:
9
+ ci:
10
+ runs-on: ubuntu-latest
11
+ strategy:
12
+ matrix:
13
+ ruby-version:
14
+ - '3.0'
15
+ - '3.1'
16
+ rails-version:
17
+ - '6.1'
18
+ - '7.0'
19
+ services:
20
+ postgres:
21
+ image: manageiq/postgresql:13
22
+ env:
23
+ POSTGRESQL_USER: root
24
+ POSTGRESQL_PASSWORD: smartvm
25
+ POSTGRESQL_DATABASE: vmdb_test
26
+ options: "--health-cmd pg_isready --health-interval 2s --health-timeout 5s
27
+ --health-retries 5"
28
+ ports:
29
+ - 5432:5432
30
+ env:
31
+ PGHOST: localhost
32
+ PGPASSWORD: smartvm
33
+ TEST_RAILS_VERSION: ${{ matrix.rails-version }}
34
+ CC_TEST_REPORTER_ID: "${{ secrets.CC_TEST_REPORTER_ID }}"
35
+ steps:
36
+ - uses: actions/checkout@v4
37
+ - name: Set up Ruby
38
+ uses: ruby/setup-ruby@v1
39
+ with:
40
+ ruby-version: "${{ matrix.ruby-version }}"
41
+ bundler-cache: true
42
+ - name: Run tests
43
+ run: bundle exec rake
44
+ - name: Report code coverage
45
+ if: "${{ github.ref == 'refs/heads/master' && matrix.ruby-version == '3.0' && matrix.rails-version == '6.1' }}"
46
+ continue-on-error: true
47
+ uses: paambaati/codeclimate-action@v5
data/.rspec CHANGED
@@ -1,4 +1,3 @@
1
1
  --require spec_helper
2
2
  --color
3
3
  --order random
4
- --format documentation
data/.rspec_ci CHANGED
@@ -3,4 +3,3 @@
3
3
  --color
4
4
  --order random
5
5
  --profile
6
- --format documentation
data/CHANGELOG.md ADDED
@@ -0,0 +1,300 @@
1
+ # Change Log
2
+ All notable changes to this project will be documented in this file.
3
+ This project adheres to [Semantic Versioning](http://semver.org/).
4
+
5
+ ## [Unreleased]
6
+
7
+ ## [8.1.0] - 2024-02-07
8
+ ### Fixed
9
+ - Fix sporadic test failure [[#204]](https://github.com/ManageIQ/manageiq-appliance_console/pull/204)
10
+ - Remove MIQ specific gem source [[#209]](https://github.com/ManageIQ/manageiq-appliance_console/pull/209)
11
+ - Double escape @ in realm to avoid shell interpretation [[#211]](https://github.com/ManageIQ/manageiq-appliance_console/pull/211)
12
+ - Move gem name loader to proper namespaced location [[#208]](https://github.com/ManageIQ/manageiq-appliance_console/pull/208)
13
+ - Separate kerberos from service principal name and use correctly [[#215]](https://github.com/ManageIQ/manageiq-appliance_console/pull/215)
14
+ - Add manageiq user to allowed_uids for sssd [[#220]](https://github.com/ManageIQ/manageiq-appliance_console/pull/220)
15
+ - Remove warning about using pg_dump [[#221]](https://github.com/ManageIQ/manageiq-appliance_console/pull/221)
16
+ - Fix specs where AwesomeSpawn private interface changed [[#224]](https://github.com/ManageIQ/manageiq-appliance_console/pull/224)
17
+ - Change the Name of the CA from something to ApplianceCA [[#228]](https://github.com/ManageIQ/manageiq-appliance_console/pull/228)
18
+ - Fix YAML.load_file failing on aliases [[#234]](https://github.com/ManageIQ/manageiq-appliance_console/pull/234)
19
+
20
+ ### Added
21
+ - Make backward compatible changes to work with repmgr13 - version 5.2.1 [[#192]](https://github.com/ManageIQ/manageiq-appliance_console/pull/192)
22
+ - Support Ruby 3.0 [[#206]](https://github.com/ManageIQ/manageiq-appliance_console/pull/206)
23
+ - Support Ruby 3.1 [[#227]](https://github.com/ManageIQ/manageiq-appliance_console/pull/227)
24
+ - Allow rails 7 gems in gemspec [[#226]](https://github.com/ManageIQ/manageiq-appliance_console/pull/226)
25
+
26
+ ### Changed
27
+ - Update to Highline 2.1.0 [[#201]](https://github.com/ManageIQ/manageiq-appliance_console/pull/201)
28
+ - Clean up test output (highline and stdout messages) [[#210]](https://github.com/ManageIQ/manageiq-appliance_console/pull/210)
29
+
30
+ ### Removed
31
+ - Drop Ruby 2.7 [[#223]](https://github.com/ManageIQ/manageiq-appliance_console/pull/223)
32
+
33
+ ## [8.0.0] - 2022-10-18
34
+ ### Fixed
35
+ - Don't require pressing any key twice for message configuration [[#193]](https://github.com/ManageIQ/manageiq-appliance_console/pull/193)
36
+
37
+ ### Added
38
+ - Report messaging configuration on summary info page [[#190]](https://github.com/ManageIQ/manageiq-appliance_console/pull/190)
39
+
40
+ ### Changed
41
+ - **BREAKING** Don't start evmserverd until messaging is configured [[#196]](https://github.com/ManageIQ/manageiq-appliance_console/pull/196)
42
+ - Refactor EvmServer operations [[#194]](https://github.com/ManageIQ/manageiq-appliance_console/pull/194)
43
+ - Only start evmserverd after all application configuration is done [[#195]](https://github.com/ManageIQ/manageiq-appliance_console/pull/195)
44
+ - Simplify messaging options by saving in yml files [[#197]](https://github.com/ManageIQ/manageiq-appliance_console/pull/197)
45
+
46
+ ## [7.2.2] - 2023-06-30
47
+ ### Fixed
48
+ - Fix sporadic test failure [[#204]](https://github.com/ManageIQ/manageiq-appliance_console/pull/204)
49
+ - Move gem name loader to proper namespaced location [[#208]](https://github.com/ManageIQ/manageiq-appliance_console/pull/208)
50
+ - Separate kerberos from service principal name and use correctly [[#215]](https://github.com/ManageIQ/manageiq-appliance_console/pull/215)
51
+
52
+ ## [7.2.1] - 2023-05-03
53
+ ### Fixed
54
+ - Remove MIQ specific gem source [[#209]](https://github.com/ManageIQ/manageiq-appliance_console/pull/209)
55
+ - Double escape @ in realm to avoid shell interpretation [[#211]](https://github.com/ManageIQ/manageiq-appliance_console/pull/211)
56
+
57
+ ## [7.2.0] - 2022-11-01
58
+ ### Added
59
+ - Make backward compatible changes to work with repmgr13 - version 5.2.1
60
+
61
+ ### Fixed
62
+ - Don't require user to press_any_key twice after successful messaging configuration
63
+ - Swap "localhost" to 127.0.0.1 in Messaging server configuration
64
+ - Simplify messaging options by saving in yml files
65
+
66
+ ## [7.1.1] - 2022-09-02
67
+ ### Fixed
68
+ - 6.1 configurations has symbol keys, [] deprecated, use configs_for [[#189]](https://github.com/ManageIQ/manageiq-appliance_console/pull/189)
69
+
70
+ ## [7.1.0] - 2022-08-12
71
+ ### Changed
72
+ - Upgrade to Rails 6.1
73
+
74
+ ## [7.0.6] - 2022-07-14
75
+ ### Changed
76
+ - Fix issue where region env var was not passed as a String [[#185]](https://github.com/ManageIQ/manageiq-appliance_console/pull/185)
77
+
78
+ ## [7.0.5] - 2022-07-13
79
+ ### Changed
80
+ - Fixed calls to `rake` command [[#184]](https://github.com/ManageIQ/manageiq-appliance_console/pull/184)
81
+
82
+ ## [7.0.4] - 2022-07-12
83
+ ### Changed
84
+ - Pass region as an environment variable [[#182]](https://github.com/ManageIQ/manageiq-appliance_console/pull/182)
85
+
86
+ ## [7.0.3] - 2022-02-22
87
+ ### Changed
88
+ - Check if kafka is installed before allowing messaging changes [[#180]](https://github.com/ManageIQ/manageiq-appliance_console/pull/180)
89
+
90
+ ## [7.0.2] - 2021-11-03
91
+ ### Changed
92
+ - Loosen manageiq-password to < 2 [[#175]](https://github.com/ManageIQ/manageiq-appliance_console/pull/175)
93
+
94
+ ## [7.0.1] - 2021-09-15
95
+ ### Changed
96
+ - Move in db_connections code from core
97
+ - We were locked down to activerecord/activesupport ~> 6.0.3.5 which didn't allow us to update to 6.0.4.1, loosen the dependency
98
+
99
+ ## [7.0.0] - 2021-08-04
100
+ ### Fixed
101
+ - Chown database.yml as manageiq:manageiq [[#165]](https://github.com/ManageIQ/manageiq-appliance_console/pull/165)
102
+ - Create /opt/kafka/config/keystore directory [[#170]](https://github.com/ManageIQ/manageiq-appliance_console/pull/170)
103
+ - Add missing parse_errors() method [[#169]](https://github.com/ManageIQ/manageiq-appliance_console/pull/169)
104
+
105
+ ### Added
106
+ - Add database dump/backup/restore to CLI [[#161]](https://github.com/ManageIQ/manageiq-appliance_console/pull/161)
107
+ - Use PostgresAdmin directly for DB backups [[#160]](https://github.com/ManageIQ/manageiq-appliance_console/pull/160)
108
+
109
+ ## [6.1.1] - 2021-09-15
110
+ ### Changed
111
+ - Upgrade to rails 6.0.4.1 [[#173]](https://github.com/ManageIQ/manageiq-appliance_console/pull/173)
112
+
113
+ ## [6.1.0] - 2021-03-30
114
+ ### Added
115
+ - Support a configuring the kafka server with the current IPAddr [[#159]](https://github.com/ManageIQ/manageiq-appliance_console/pull/159)
116
+ - Support moving Kafka Persistent data to a dedicated disk [[#158]](https://github.com/ManageIQ/manageiq-appliance_console/pull/158)
117
+ - Inject postgres admin into the appliance console [[#157]](https://github.com/ManageIQ/manageiq-appliance_console/pull/157)
118
+ - [Utilities] Add #disk_usage [[#155]](https://github.com/ManageIQ/manageiq-appliance_console/pull/155)
119
+ - When configuring the kafka client disable the server [[#154]](https://github.com/ManageIQ/manageiq-appliance_console/pull/154)
120
+ - Pass password to the keytool command using stdin [[#152]](https://github.com/ManageIQ/manageiq-appliance_console/pull/152)
121
+ - Support configuring Kafka through the CLI [[#151]](https://github.com/ManageIQ/manageiq-appliance_console/pull/151)
122
+ - Unify kafka client setup [[#149]](https://github.com/ManageIQ/manageiq-appliance_console/pull/149)
123
+ - use attr_reader only for password [[#148]](https://github.com/ManageIQ/manageiq-appliance_console/pull/148)
124
+ - remove duplicate class attr writer [[#145]](https://github.com/ManageIQ/manageiq-appliance_console/pull/145)
125
+ - Toggle Settings.prototype.messaging_type for Kafka support [[#137]](https://github.com/ManageIQ/manageiq-appliance_console/pull/137)
126
+ - Initial commit of kafka server configuration [[#130]](https://github.com/ManageIQ/manageiq-appliance_console/pull/130)
127
+
128
+ ### Fixed
129
+ - Fix Hakiri errors on activesupport/activerecord [[#156]](https://github.com/ManageIQ/manageiq-appliance_console/pull/156)
130
+ - Fix MAC test failures [[#150]](https://github.com/ManageIQ/manageiq-appliance_console/pull/150)
131
+
132
+ ## [6.0.0] - 2020-11-11
133
+ ### Added
134
+ - Try to fetch introspect endpoint from the provider metadata [[#121]](https://github.com/ManageIQ/manageiq-appliance_console/pull/121)
135
+
136
+ ### Removed
137
+ - **BREAKING** Remove rbnacl-libsodium [[#134]](https://github.com/ManageIQ/manageiq-appliance_console/pull/134)
138
+
139
+ rbnacl-libsodium is discontinued and it is preferable to use the
140
+ system package instead. Due to this, we are releasing this as a major
141
+ version, so that systems don't accidentally pull in a patch or minor
142
+ release which would then require system-level changes to install the
143
+ system package.
144
+
145
+ ## [5.5.0] - 2020-05-12
146
+ ### Added
147
+ - Add support for the oidc introspection endpoint [[#117]](https://github.com/ManageIQ/manageiq-appliance_console/pull/117)
148
+
149
+ ### Changed
150
+ - Rename "Configure Application Database Failover Monitor" [[#116]](https://github.com/ManageIQ/manageiq-appliance_console/pull/116)
151
+
152
+ ## [5.4.0] - 2020-04-14
153
+ ### Added
154
+ - Support for configuring an external messaging system [[#114]](https://github.com/ManageIQ/manageiq-appliance_console/pull/114)
155
+
156
+ ## [5.3.3] - 2020-04-02
157
+ ### Added
158
+ - Add necessary dependencies to support ssh with ed25519 cipher [[#113]](https://github.com/ManageIQ/manageiq-appliance_console/pull/113)
159
+ - Add missing net-scp runtime dependency [[#113]](https://github.com/ManageIQ/manageiq-appliance_console/pull/113)
160
+
161
+ ## [5.3.2] - 2020-03-05
162
+ ### Changed
163
+ - Use LinuxAdmin::Service#start with enable set to true
164
+
165
+ ## [5.3.1] - 2020-01-16
166
+ ### Changed
167
+ - Deduplicate the SCAP_RULES_DIR constan
168
+ - Update hostname regex to allow starting with digit
169
+ - Use the regex to validate hostnames when we set them
170
+
171
+ ## [5.3.0] - 2019-12-12
172
+
173
+ ## [5.2.0] - 2019-12-06
174
+
175
+ ## [5.1.0] - 2019-11-22
176
+ ### Changed
177
+ - Adding support for configuring Appliance SAML Authentication via the CLI
178
+
179
+ ## [5.0.3] - 2019-09-19
180
+ ### Changed
181
+ - Ensure that the CLI exits non-zero on database configuration error
182
+
183
+ ## [5.0.2] - 2019-08-14
184
+ ### Changed
185
+ - Restore the selinux context for the standby data directory [[#96]](https://github.com/ManageIQ/manageiq-appliance_console/pull/96)
186
+
187
+ ## [5.0.1] - 2019-07-08
188
+ ### Changed
189
+ - Remove unrecommended mount option "nobarrier" [[#95]](https://github.com/ManageIQ/manageiq-appliance_console/pull/95)
190
+ - Fix multiple issues with logfile disk configuration [[#93]](https://github.com/ManageIQ/manageiq-appliance_console/pull/93)
191
+
192
+ ## [5.0.0] - 2019-06-10
193
+ ### Changed
194
+ - Remove PG certificate handling [[#88]](https://github.com/ManageIQ/manageiq-appliance_console/pull/88)
195
+ - Don't attempt a database restore if evmserverd is running [[#91]](https://github.com/ManageIQ/manageiq-appliance_console/pull/91)
196
+
197
+ ## [4.0.2] - 2019-03-27
198
+ ### Changed
199
+ - Remove references to MiqPassword
200
+
201
+ ## [4.0.1] - 2019-03-14
202
+ ### Changed
203
+ - Fix permissions on PG user home directory after disk mount
204
+
205
+ ## [4.0.0] - 2019-03-12
206
+ ### Changed
207
+ - **BREAKING** Upgrade to Postgres 10
208
+ - Handle existing certs and support rerun of cert generation
209
+ - Enable certmonger to restart on reboot
210
+ - Switch to optimist gem
211
+
212
+ ## [3.3.3] - 2019-09-19
213
+
214
+ ## [3.3.2] - 2019-07-09
215
+
216
+ ## [3.3.1] - 2019-02-14
217
+
218
+ ## [3.3.0] - 2018-11-05
219
+
220
+ ## [3.2.0] - 2018-08-23
221
+
222
+ ## [3.1.0] - 2018-08-16
223
+
224
+ ## [3.0.0] - 2018-08-01
225
+
226
+ ## [2.0.3] - 2018-05-03
227
+
228
+ ## [2.0.2] - 2018-05-02
229
+
230
+ ## [2.0.1] - 2018-04-25
231
+
232
+ ## [2.0.0] - 2018-03-09
233
+
234
+ ## [1.2.4] - 2018-01-18
235
+
236
+ ## [1.2.3] - 2018-01-04
237
+
238
+ ## [1.2.2] - 2017-12-20
239
+
240
+ ## [1.2.1] - 2017-12-19
241
+
242
+ ## [1.2.0] - 2017-12-14
243
+
244
+ ## [1.1.0] - 2017-12-11
245
+
246
+ ## [1.0.1] - 2017-10-19
247
+
248
+ ## [1.0.0] - 2017-10-19
249
+
250
+ [Unreleased]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v8.0.0...HEAD
251
+ [8.0.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v7.2.2...v8.0.0
252
+ [7.2.2]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v7.2.1...v7.2.2
253
+ [7.2.1]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v7.2.0...v7.2.1
254
+ [7.2.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v7.1.1...v7.2.0
255
+ [7.1.1]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v7.1.0...v7.1.1
256
+ [7.1.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v7.0.6...v7.1.0
257
+ [7.0.6]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v7.0.5...v7.0.6
258
+ [7.0.5]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v7.0.4...v7.0.5
259
+ [7.0.4]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v7.0.3...v7.0.4
260
+ [7.0.3]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v7.0.2...v7.0.3
261
+ [7.0.2]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v7.0.1...v7.0.2
262
+ [7.0.1]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v7.0.0...v7.0.1
263
+ [7.0.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v6.1.1...v7.0.0
264
+ [6.1.1]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v6.1.0...v6.1.1
265
+ [6.1.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v6.0.0...v6.1.0
266
+ [6.0.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v5.5.0...v6.0.0
267
+ [5.5.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v5.4.0...v5.5.0
268
+ [5.4.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v5.3.3...v5.4.0
269
+ [5.3.3]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v5.3.2...v5.3.3
270
+ [5.3.2]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v5.3.1...v5.3.2
271
+ [5.3.1]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v5.3.0...v5.3.1
272
+ [5.3.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v5.2.0...v5.3.0
273
+ [5.2.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v5.1.0...v5.2.0
274
+ [5.1.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v5.0.3...v5.1.0
275
+ [5.0.3]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v5.0.2...v5.0.3
276
+ [5.0.2]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v5.0.1...v5.0.2
277
+ [5.0.1]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v5.0.0...v5.0.1
278
+ [5.0.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v4.0.2...v5.0.0
279
+ [4.0.2]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v4.0.1...v4.0.2
280
+ [4.0.1]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v4.0.0...v4.0.1
281
+ [4.0.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v3.3.3...v4.0.0
282
+ [3.3.3]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v3.2.2...v3.3.3
283
+ [3.3.2]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v3.3.1...v3.3.2
284
+ [3.3.1]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v3.3.0...v3.3.1
285
+ [3.3.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v3.2.0...v3.3.0
286
+ [3.2.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v3.1.0...v3.2.0
287
+ [3.1.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v3.0.0...v3.1.0
288
+ [3.0.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v2.0.3...v3.0.0
289
+ [2.0.3]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v2.0.2...v2.0.3
290
+ [2.0.2]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v2.0.1...v2.0.2
291
+ [2.0.1]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v2.0.0...v2.0.1
292
+ [2.0.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v1.2.4...v2.0.0
293
+ [1.2.4]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v1.2.3...v1.2.4
294
+ [1.2.3]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v1.2.2...v1.2.3
295
+ [1.2.2]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v1.2.1...v1.2.2
296
+ [1.2.1]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v1.2.0...v1.2.1
297
+ [1.2.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v1.1.0...v1.2.0
298
+ [1.1.0]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v1.0.1...v1.1.0
299
+ [1.0.1]: https://github.com/ManageIQ/manageiq-appliance_console/compare/v1.0.0...v1.0.1
300
+ [1.0.0]: https://github.com/ManageIQ/manageiq-appliance_console/tree/v1.0.0
data/Gemfile CHANGED
@@ -2,3 +2,14 @@ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in manageiq-appliance_console.gemspec
4
4
  gemspec
5
+
6
+ minimum_version =
7
+ case ENV['TEST_RAILS_VERSION']
8
+ when "7.0"
9
+ "~>7.0.8"
10
+ else
11
+ "~>6.1.4"
12
+ end
13
+
14
+ gem "activerecord", minimum_version
15
+ gem "activesupport", minimum_version
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # ManageIQ::ApplianceConsole
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/manageiq-appliance_console.svg)](http://badge.fury.io/rb/manageiq-appliance_console)
4
- [![Build Status](https://travis-ci.com/ManageIQ/manageiq-appliance_console.svg?branch=master)](https://travis-ci.com/github/ManageIQ/manageiq-appliance_console)
4
+ [![CI](https://github.com/ManageIQ/manageiq-appliance_console/actions/workflows/ci.yaml/badge.svg)](https://github.com/ManageIQ/manageiq-appliance_console/actions/workflows/ci.yaml)
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
7
 
data/Rakefile CHANGED
@@ -8,7 +8,10 @@ RSpec::Core::RakeTask.new(:spec)
8
8
  # setting to allow the postgres specs to run.
9
9
  desc "Run RSpec code examples (assumes ci dependencies)"
10
10
  RSpec::Core::RakeTask.new("spec:ci") do |t|
11
- t.rspec_opts = "--options #{File.expand_path(".rspec_ci", __dir__)}"
11
+ # Temporarily disable the PG runner on CI
12
+ # was: t.rspec_opts = "--options #{File.expand_path(".rspec_ci", __dir__)}"
13
+ warn "\e[33;1mWARN: PostgresRunner specs are temporarily disabled on CI\e[0m" if ENV["CI"]
14
+ t.rspec_opts = "--options #{File.expand_path(".rspec", __dir__)}"
12
15
  end
13
16
 
14
17
  desc "Run RSpec code examples (with local postgres dependencies)"
@@ -8,19 +8,19 @@ Bundler.setup
8
8
  require 'manageiq/appliance_console'
9
9
 
10
10
  require 'fileutils'
11
+ # defines globally /via kernal: agree(), ask(), choose() and say()
11
12
  require 'highline/import'
12
- require 'highline/system_extensions'
13
13
  require 'rubygems'
14
14
  require 'bcrypt'
15
15
  require 'linux_admin'
16
- require 'manageiq/appliance_console/postgres_admin'
17
16
  require 'awesome_spawn'
18
- include HighLine::SystemExtensions
19
17
 
20
18
  require 'manageiq/appliance_console/i18n'
21
19
 
22
- $terminal.wrap_at = 80
23
- $terminal.page_at = 35
20
+ HighLine.default_instance.tap do |highline|
21
+ highline.wrap_at = 80
22
+ highline.page_at = 35
23
+ end
24
24
 
25
25
  def summary_entry(field, value)
26
26
  dfield = "#{field}:"
@@ -92,18 +92,26 @@ module ApplianceConsole
92
92
  eth0.reload
93
93
  eth0.parse_conf if eth0.respond_to?(:parse_conf)
94
94
 
95
- host = LinuxAdmin::Hosts.new.hostname
96
- ip = eth0.address
97
- mac = eth0.mac_address
98
- mask = eth0.netmask
99
- gw = eth0.gateway
100
- dns1, dns2 = dns.nameservers
101
- order = dns.search_order.join(' ')
102
- timezone = LinuxAdmin::TimeDate.system_timezone
103
- version = File.read(VERSION_FILE).chomp if File.exist?(VERSION_FILE)
104
- dbhost = ManageIQ::ApplianceConsole::DatabaseConfiguration.database_host
105
- database = ManageIQ::ApplianceConsole::DatabaseConfiguration.database_name
106
- evm_running = LinuxAdmin::Service.new("evmserverd").running?
95
+ host = LinuxAdmin::Hosts.new.hostname
96
+ ip = eth0.address
97
+ mac = eth0.mac_address
98
+ mask = eth0.netmask
99
+ gw = eth0.gateway
100
+ dns1, dns2 = dns.nameservers
101
+ order = dns.search_order.join(' ')
102
+ timezone = LinuxAdmin::TimeDate.system_timezone
103
+ version = File.read(VERSION_FILE).chomp if File.exist?(VERSION_FILE)
104
+ dbhost = ManageIQ::ApplianceConsole::DatabaseConfiguration.database_host
105
+ database = ManageIQ::ApplianceConsole::DatabaseConfiguration.database_name
106
+ messaging = ManageIQ::ApplianceConsole::MessageConfiguration.configured?
107
+ messaging_broker = ManageIQ::ApplianceConsole::MessageServerConfiguration.configured?
108
+ evm_status = if ManageIQ::ApplianceConsole::EvmServer.running?
109
+ "running"
110
+ elsif ManageIQ::ApplianceConsole::EvmServer.runnable?
111
+ "not running"
112
+ else
113
+ "not configured"
114
+ end
107
115
 
108
116
  summary_attributes = [
109
117
  summary_entry("Hostname", host),
@@ -117,9 +125,11 @@ module ApplianceConsole
117
125
  summary_entry("MAC Address", mac),
118
126
  summary_entry("Timezone", timezone),
119
127
  summary_entry("Local Database Server", PostgresAdmin.local_server_status),
120
- summary_entry("#{I18n.t("product.name")} Server", evm_running ? "running" : "not running"),
128
+ summary_entry("#{I18n.t("product.name")} Server", evm_status),
121
129
  summary_entry("#{I18n.t("product.name")} Database", dbhost || "not configured"),
122
130
  summary_entry("Database/Region", database ? "#{database} / #{region.to_i}" : "not configured"),
131
+ summary_entry("Messaging", messaging ? "configured" : "not configured"),
132
+ summary_entry("Local Messaging Broker", messaging_broker ? "configured" : "not configured"),
123
133
  summary_entry("External Auth", ExternalHttpdAuthentication.config_status),
124
134
  summary_entry("#{I18n.t("product.name")} Version", version),
125
135
  ]
@@ -131,7 +141,7 @@ Welcome to the #{I18n.t("product.name")} Virtual Appliance.
131
141
 
132
142
  To modify the configuration, use a web browser to access the management page.
133
143
 
134
- #{$terminal.list(summary_attributes)}
144
+ #{HighLine.default_instance.list(summary_attributes)}
135
145
  EOL
136
146
 
137
147
  press_any_key
@@ -322,12 +332,11 @@ Static Network Configuration
322
332
 
323
333
  when I18n.t("advanced_settings.evmstop")
324
334
  say("#{selection}\n\n")
325
- service = LinuxAdmin::Service.new("evmserverd")
326
- if service.running?
335
+ if ManageIQ::ApplianceConsole::EvmServer.running?
327
336
  if ask_yn? "\nNote: It may take up to a few minutes for all #{I18n.t("product.name")} server processes to exit gracefully. Stop #{I18n.t("product.name")}"
328
337
  say("\nStopping #{I18n.t("product.name")} Server...")
329
338
  logger.info("EVM server stop initiated by appliance console.")
330
- service.stop
339
+ ManageIQ::ApplianceConsole::EvmServer.stop
331
340
  end
332
341
  else
333
342
  say("\n#{I18n.t("product.name")} Server is not running...")
@@ -339,13 +348,7 @@ Static Network Configuration
339
348
  if ask_yn?("\nStart #{I18n.t("product.name")}")
340
349
  say("\nStarting #{I18n.t("product.name")} Server...")
341
350
  logger.info("EVM server start initiated by appliance console.")
342
- begin
343
- LinuxAdmin::Service.new("evmserverd").start
344
- rescue AwesomeSpawn::CommandResultError => e
345
- say e.result.output
346
- say e.result.error
347
- say ""
348
- end
351
+ ManageIQ::ApplianceConsole::EvmServer.start
349
352
  press_any_key
350
353
  end
351
354
 
@@ -396,6 +399,14 @@ Static Network Configuration
396
399
 
397
400
  messaging_action = ask_with_menu("Configure Messaging", messaging_options)
398
401
 
402
+ changes_requested = database_action != "no_changes" || messaging_action != "no_changes"
403
+
404
+ # Stop evmserver while we make changes to the database and/or messaging configuration
405
+ if changes_requested
406
+ say("\nStopping #{I18n.t("product.name")} Server...")
407
+ ManageIQ::ApplianceConsole::EvmServer.stop
408
+ end
409
+
399
410
  database_configuration =
400
411
  case database_action
401
412
  when "create_internal"
@@ -436,7 +447,6 @@ Static Network Configuration
436
447
  press_any_key
437
448
  raise MiqSignalError
438
449
  end
439
-
440
450
  when "message_client"
441
451
  say("#{selection}\n\n")
442
452
 
@@ -454,6 +464,12 @@ Static Network Configuration
454
464
  end
455
465
  end
456
466
 
467
+ # Start evmserverd if database and/or messaging were set up and we are supposed to run as an evmserver
468
+ if changes_requested && database_configuration.run_as_evm_server
469
+ say("\nStarting #{I18n.t("product.name")} Server...")
470
+ ManageIQ::ApplianceConsole::EvmServer.start
471
+ end
472
+
457
473
  press_any_key
458
474
 
459
475
  when I18n.t("advanced_settings.db_replication")
@@ -551,13 +567,13 @@ Static Network Configuration
551
567
  when RE_RESTART
552
568
  if are_you_sure?("restart the appliance now")
553
569
  logger.info("Appliance restart initiated by appliance console.")
554
- LinuxAdmin::Service.new("evmserverd").stop
570
+ ManageIQ::ApplianceConsole::EvmServer.stop
555
571
  LinuxAdmin::System.reboot!
556
572
  end
557
573
  when RE_DELLOGS
558
574
  if are_you_sure?("restart the appliance now")
559
575
  logger.info("Appliance restart with clean logs initiated by appliance console.")
560
- LinuxAdmin::Service.new("evmserverd").stop
576
+ ManageIQ::ApplianceConsole::EvmServer.stop
561
577
  LinuxAdmin::Service.new("miqtop").stop
562
578
  LinuxAdmin::Service.new("miqvmstat").stop
563
579
  LinuxAdmin::Service.new("httpd").stop
@@ -573,7 +589,7 @@ Static Network Configuration
573
589
  if are_you_sure?("shut down the appliance now")
574
590
  say("\nShutting down appliance... This process may take a few minutes.\n\n")
575
591
  logger.info("Appliance shutdown initiated by appliance console")
576
- LinuxAdmin::Service.new("evmserverd").stop
592
+ ManageIQ::ApplianceConsole::EvmServer.stop
577
593
  LinuxAdmin::System.shutdown!
578
594
  end
579
595
 
@@ -529,15 +529,13 @@ module ApplianceConsole
529
529
  end
530
530
 
531
531
  def set_server_state
532
- service = LinuxAdmin::Service.new("evmserverd")
533
- service_running = service.running?
534
532
  case options[:server]
535
533
  when "start"
536
- service.start unless service_running
534
+ EvmServer.start unless EvmServer.running?
537
535
  when "stop"
538
- service.stop if service_running
536
+ EvmServer.stop if EvmServer.running?
539
537
  when "restart"
540
- service.restart
538
+ EvmServer.restart
541
539
  else
542
540
  raise "Invalid server action"
543
541
  end
@@ -15,14 +15,6 @@ module ManageIQ
15
15
  Example: 'mydomain.com/user'
16
16
  PROMPT
17
17
 
18
- DB_DUMP_WARNING = <<-WARN.strip_heredoc
19
- WARNING: This is not the recommended and supported way of running a
20
- database backup, and is strictly meant for exporting a database for
21
- support/debugging purposes!
22
-
23
-
24
- WARN
25
-
26
18
  attr_reader :action, :backup_type, :database_opts, :delete_agree, :filename
27
19
 
28
20
  def initialize(action = :restore, input = $stdin, output = $stdout)
@@ -38,12 +30,11 @@ module ManageIQ
38
30
 
39
31
  def ask_questions
40
32
  setting_header
41
- if action == :restore && LinuxAdmin::Service.new("evmserverd").running?
33
+ if action == :restore && EvmServer.running?
42
34
  say("\nDatabase restore failed. Please execute the \“Stop EVM Server Processes\” command and try again.")
43
35
  press_any_key
44
36
  raise MiqSignalError
45
37
  end
46
- say(DB_DUMP_WARNING) if action == :dump
47
38
  ask_file_location
48
39
  ask_for_tables_to_exclude_in_dump
49
40
  end
@@ -12,7 +12,7 @@ module ApplianceConsole
12
12
  class DatabaseConfiguration
13
13
  include ManageIQ::ApplianceConsole::ManageiqUserMixin
14
14
 
15
- attr_accessor :adapter, :host, :username, :database, :port, :region
15
+ attr_accessor :adapter, :host, :username, :database, :port, :region, :run_as_evm_server
16
16
  attr_reader :password
17
17
 
18
18
  class ModelWithNoBackingTable < ActiveRecord::Base
@@ -38,6 +38,7 @@ module ApplianceConsole
38
38
  @adapter ||= "postgresql"
39
39
  # introduced by Logging
40
40
  self.interactive = true unless hash.key?(:interactive)
41
+ self.run_as_evm_server = true unless hash.key?(:run_as_evm_server)
41
42
  end
42
43
 
43
44
  def run_interactive
@@ -48,7 +49,6 @@ module ApplianceConsole
48
49
 
49
50
  raise MiqSignalError unless activate
50
51
 
51
- post_activation
52
52
  say("\nConfiguration activated successfully.\n")
53
53
  rescue RuntimeError => e
54
54
  puts "Configuration failed#{": " + e.message unless e.class == MiqSignalError}"
@@ -236,18 +236,6 @@ FRIENDLY
236
236
  end
237
237
  end
238
238
 
239
- def start_evm
240
- pid = fork do
241
- begin
242
- LinuxAdmin::Service.new("evmserverd").start(true)
243
- rescue => e
244
- logger.error("Failed to enable and start evmserverd service: #{e.message}")
245
- logger.error(e.backtrace.join("\n"))
246
- end
247
- end
248
- Process.detach(pid)
249
- end
250
-
251
239
  private
252
240
 
253
241
  def self.rails_env
@@ -269,7 +257,13 @@ FRIENDLY
269
257
  require 'fileutils'
270
258
  FileUtils.cp(DB_YML_TMPL, DB_YML) if File.exist?(DB_YML_TMPL)
271
259
  end
272
- YAML.load_file(DB_YML)
260
+
261
+ data = File.read(DB_YML)
262
+ if YAML.respond_to?(:safe_load)
263
+ YAML.safe_load(data, :aliases => true)
264
+ else
265
+ YAML.load(data) # rubocop:disable Security/YAMLLoad
266
+ end
273
267
  end
274
268
 
275
269
  def validate_encryption_key!
@@ -0,0 +1,66 @@
1
+ module ManageIQ
2
+ module ApplianceConsole
3
+ class EvmServer
4
+ class NotRunnableError < RuntimeError; end
5
+
6
+ class << self
7
+ def running?
8
+ service.running?
9
+ end
10
+
11
+ def start!(enable: false)
12
+ raise NotRunnableError, "Cannot start #{I18n.t("product.name")}: #{not_runnable_reason}" unless runnable?
13
+
14
+ service.start(enable)
15
+ end
16
+
17
+ def start(enable: false)
18
+ start!(:enable => enable)
19
+ rescue AwesomeSpawn::CommandResultError => e
20
+ say(e.result.output)
21
+ say(e.result.error)
22
+ say("")
23
+ false
24
+ rescue NotRunnableError => e
25
+ say(e.to_s)
26
+ say("")
27
+ false
28
+ end
29
+
30
+ def stop
31
+ service.stop
32
+ end
33
+
34
+ def restart
35
+ service.restart
36
+ end
37
+
38
+ def enable
39
+ service.enable
40
+ end
41
+
42
+ def disable
43
+ service.disable
44
+ end
45
+
46
+ def runnable?
47
+ DatabaseConfiguration.database_yml_configured? && MessageConfiguration.configured?
48
+ end
49
+
50
+ def not_runnable_reason
51
+ if !DatabaseConfiguration.database_yml_configured?
52
+ "A Database connection has not been configured."
53
+ elsif !MessageConfiguration.configured?
54
+ "Messaging has not been configured."
55
+ end
56
+ end
57
+
58
+ private
59
+
60
+ def service
61
+ @service ||= LinuxAdmin::Service.new("evmserverd")
62
+ end
63
+ end
64
+ end
65
+ end
66
+ end
@@ -25,10 +25,6 @@ module ApplianceConsole
25
25
  say("Database Configuration\n")
26
26
  ask_for_database_credentials(false)
27
27
  end
28
-
29
- def post_activation
30
- start_evm
31
- end
32
28
  end
33
29
  end
34
30
  end
@@ -124,7 +124,7 @@ module ApplianceConsole
124
124
  def configure_sssd_ifp(config)
125
125
  user_attributes = LDAP_ATTRS.keys.collect { |k| "+#{k}" }.join(", ")
126
126
  ifp_config = "
127
- allowed_uids = #{APACHE_USER}, root
127
+ allowed_uids = #{APACHE_USER}, root, manageiq
128
128
  user_attributes = #{user_attributes}
129
129
  "
130
130
  if config.include?("[ifp]")
@@ -5,7 +5,7 @@ require "linux_admin"
5
5
  module ManageIQ
6
6
  module ApplianceConsole
7
7
  class InternalDatabaseConfiguration < DatabaseConfiguration
8
- attr_accessor :disk, :run_as_evm_server
8
+ attr_accessor :disk
9
9
 
10
10
  DEDICATED_DB_SHARED_BUFFERS = "'1GB'".freeze
11
11
  SHARED_DB_SHARED_BUFFERS = "'128MB'".freeze
@@ -24,10 +24,9 @@ module ApplianceConsole
24
24
  end
25
25
 
26
26
  def set_defaults
27
- self.host = 'localhost'
28
- self.username = "root"
29
- self.database = "vmdb_production"
30
- self.run_as_evm_server = true
27
+ self.host = 'localhost'
28
+ self.username = "root"
29
+ self.database = "vmdb_production"
31
30
  end
32
31
 
33
32
  def activate
@@ -109,10 +108,6 @@ module ApplianceConsole
109
108
  copy_template "pg_ident.conf"
110
109
  end
111
110
 
112
- def post_activation
113
- start_evm if run_as_evm_server
114
- end
115
-
116
111
  private
117
112
 
118
113
  def mount_point
@@ -20,7 +20,7 @@ module ApplianceConsole
20
20
 
21
21
  self.size = Utilities.disk_usage(LOGFILE_DIRECTORY)[0][:total_bytes]
22
22
  self.current_logrotate_count = /rotate\s+(\d+)/.match(File.read(MIQ_LOGS_CONF))[1]
23
- self.evm_was_running = LinuxAdmin::Service.new("evmserverd").running?
23
+ self.evm_was_running = EvmServer.running?
24
24
  end
25
25
 
26
26
  def activate
@@ -103,13 +103,13 @@ module ApplianceConsole
103
103
 
104
104
  def start_evm
105
105
  say 'Starting EVM'
106
- LinuxAdmin::Service.new("evmserverd").enable.start
106
+ EvmServer.start(:enable => true)
107
107
  LinuxAdmin::Service.new("httpd").enable.start
108
108
  end
109
109
 
110
110
  def stop_evm
111
111
  say 'Stopping EVM'
112
- LinuxAdmin::Service.new("evmserverd").stop
112
+ EvmServer.stop
113
113
  LinuxAdmin::Service.new("httpd").stop
114
114
  end
115
115
  end
@@ -26,6 +26,10 @@ module ManageIQ
26
26
  File.exist?("#{BASE_DIR}/bin/kafka-run-class.sh")
27
27
  end
28
28
 
29
+ def self.configured?
30
+ MessageServerConfiguration.configured? || MessageClientConfiguration.configured?
31
+ end
32
+
29
33
  def initialize(options = {})
30
34
  @message_server_port = options[:message_server_port] || 9093
31
35
  @message_keystore_username = options[:message_keystore_username] || "admin"
@@ -106,7 +110,13 @@ module ManageIQ
106
110
 
107
111
  return if file_found?(messaging_yaml_path)
108
112
 
109
- messaging_yaml = YAML.load_file(messaging_yaml_sample_path)
113
+ data = File.read(messaging_yaml_sample_path)
114
+ messaging_yaml =
115
+ if YAML.respond_to?(:safe_load)
116
+ YAML.safe_load(data, :aliases => true)
117
+ else
118
+ YAML.load(data) # rubocop:disable Security/YAMLLoad
119
+ end
110
120
 
111
121
  messaging_yaml["production"]["host"] = message_server_host
112
122
  messaging_yaml["production"]["port"] = message_server_port
@@ -179,21 +189,7 @@ module ManageIQ
179
189
  true
180
190
  end
181
191
 
182
- def configure_messaging_type(value)
183
- say(__method__.to_s.tr("_", " ").titleize)
184
-
185
- ManageIQ::ApplianceConsole::Utilities.rake_run!("evm:settings:set", ["/prototype/messaging_type=#{value}"])
186
- end
187
-
188
- def restart_evmserverd
189
- say("Restart evmserverd if it is running...")
190
- evmserverd_service = LinuxAdmin::Service.new("evmserverd")
191
- evmserverd_service.restart if evmserverd_service.running?
192
- end
193
-
194
192
  def unconfigure
195
- configure_messaging_type("miq_queue") # Settings.prototype.messaging_type = 'miq_queue'
196
- restart_evmserverd
197
193
  remove_installed_files
198
194
  end
199
195
 
@@ -29,8 +29,6 @@ module ManageIQ
29
29
  configure_messaging_yaml # Set up the local message client in case EVM is actually running on this, Message Server
30
30
  create_client_properties # Create the client.properties configuration fle
31
31
  fetch_truststore_from_server # Fetch the Java Keystore from the Kafka Server
32
- configure_messaging_type("kafka") # Settings.prototype.messaging_type = 'kafka'
33
- restart_evmserverd
34
32
  rescue AwesomeSpawn::CommandResultError => e
35
33
  say(e.result.output)
36
34
  say(e.result.error)
@@ -77,6 +75,10 @@ module ManageIQ
77
75
  fetch_from_server(message_ca_cert_path_src, ca_cert_path)
78
76
  end
79
77
 
78
+ def self.configured?
79
+ MessageClientConfiguration.new.installed_files.all? { |f| File.exist?(f) }
80
+ end
81
+
80
82
  private
81
83
 
82
84
  def fetch_from_server(src_file, dst_file)
@@ -43,7 +43,6 @@ module ManageIQ
43
43
  configure_keystore # Populate the Java Keystore
44
44
  create_server_properties # Update the /opt/message/config/server.properties
45
45
  configure_messaging_yaml # Set up the local message client in case EVM is actually running on this, Message Server
46
- configure_messaging_type("kafka") # Settings.prototype.messaging_type = 'kafka'
47
46
  restart_services
48
47
  rescue AwesomeSpawn::CommandResultError => e
49
48
  say(e.result.output)
@@ -64,8 +63,6 @@ module ManageIQ
64
63
 
65
64
  say("Starting kafka and configure it to start on reboots ...")
66
65
  LinuxAdmin::Service.new("kafka").start.enable
67
-
68
- restart_evmserverd
69
66
  end
70
67
 
71
68
  def ask_for_parameters
@@ -201,7 +198,7 @@ module ManageIQ
201
198
  "-out" => ca_cert_path,
202
199
  "-days" => 10_000,
203
200
  "-passout" => "env:PASSWORD",
204
- "-subj" => '/CN=something'}])
201
+ "-subj" => '/CN=ApplianceCA'}])
205
202
 
206
203
  # Import the CA cert into the trust store, creating truststore.jks
207
204
  # :stdin_data provides the -storepass argument and yes to confirm
@@ -34,7 +34,11 @@ module ApplianceConsole
34
34
 
35
35
  def press_any_key
36
36
  say("\nPress any key to continue.")
37
- STDIN.noecho(&:getch)
37
+ HighLine.default_instance.tap do |highline|
38
+ highline.terminal.raw_no_echo_mode_exec do
39
+ highline.terminal.get_character
40
+ end
41
+ end
38
42
  end
39
43
 
40
44
  def clear_screen
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module ApplianceConsole
3
- VERSION = '7.2.2'.freeze
3
+ VERSION = '8.1.0'.freeze
4
4
  end
5
5
  end
@@ -34,6 +34,7 @@ require 'manageiq/appliance_console/database_replication_standby'
34
34
  require 'manageiq/appliance_console/external_auth_options'
35
35
  require 'manageiq/appliance_console/external_database_configuration'
36
36
  require 'manageiq/appliance_console/external_httpd_authentication'
37
+ require 'manageiq/appliance_console/evm_server'
37
38
  require 'manageiq/appliance_console/internal_database_configuration'
38
39
  require 'manageiq/appliance_console/key_configuration'
39
40
  require 'manageiq/appliance_console/logfile_configuration'
@@ -42,6 +43,7 @@ require 'manageiq/appliance_console/message_configuration_client'
42
43
  require 'manageiq/appliance_console/message_configuration_server'
43
44
  require 'manageiq/appliance_console/oidc_authentication'
44
45
  require 'manageiq/appliance_console/principal'
46
+ require 'manageiq/appliance_console/postgres_admin'
45
47
  require 'manageiq/appliance_console/saml_authentication'
46
48
  require 'manageiq/appliance_console/scap'
47
49
  require 'manageiq/appliance_console/temp_storage_configuration'
@@ -20,12 +20,12 @@ Gem::Specification.new do |spec|
20
20
  spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
21
21
  spec.require_paths = ["lib"]
22
22
 
23
- spec.add_runtime_dependency "activerecord", "~> 6.1.6", ">= 6.1.6.1"
24
- spec.add_runtime_dependency "activesupport", "~> 6.1.6", ">= 6.1.6.1"
25
- spec.add_runtime_dependency "awesome_spawn", "~> 1.4"
23
+ spec.add_runtime_dependency "activerecord", ">=6.1.7.6"
24
+ spec.add_runtime_dependency "activesupport", ">=6.1.7.6"
25
+ spec.add_runtime_dependency "awesome_spawn", "~> 1.6"
26
26
  spec.add_runtime_dependency "bcrypt", "~> 3.1.10"
27
27
  spec.add_runtime_dependency "bcrypt_pbkdf", ">= 1.0", "< 2.0"
28
- spec.add_runtime_dependency "highline", "~> 1.6.21"
28
+ spec.add_runtime_dependency "highline", "~> 2.1"
29
29
  spec.add_runtime_dependency "i18n", ">= 0.8"
30
30
  spec.add_runtime_dependency "linux_admin", "~> 2.0"
31
31
  spec.add_runtime_dependency "manageiq-password", "< 2"
@@ -36,10 +36,9 @@ Gem::Specification.new do |spec|
36
36
  spec.add_runtime_dependency "rbnacl", ">= 3.2", "< 5.0"
37
37
 
38
38
  spec.add_development_dependency "bundler"
39
- spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0.0"
40
39
  spec.add_development_dependency "manageiq-style"
41
40
  spec.add_development_dependency "rake"
42
- spec.add_development_dependency "rspec", "~> 3.0"
41
+ spec.add_development_dependency "rspec", "~> 3.0"
43
42
  spec.add_development_dependency "rubocop"
44
- spec.add_development_dependency "simplecov"
43
+ spec.add_development_dependency "simplecov", ">= 0.21.2"
45
44
  end
metadata CHANGED
@@ -1,69 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-appliance_console
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.2.2
4
+ version: 8.1.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: 2023-06-30 00:00:00.000000000 Z
11
+ date: 2024-02-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
18
- - !ruby/object:Gem::Version
19
- version: 6.1.6
20
17
  - - ">="
21
18
  - !ruby/object:Gem::Version
22
- version: 6.1.6.1
19
+ version: 6.1.7.6
23
20
  type: :runtime
24
21
  prerelease: false
25
22
  version_requirements: !ruby/object:Gem::Requirement
26
23
  requirements:
27
- - - "~>"
28
- - !ruby/object:Gem::Version
29
- version: 6.1.6
30
24
  - - ">="
31
25
  - !ruby/object:Gem::Version
32
- version: 6.1.6.1
26
+ version: 6.1.7.6
33
27
  - !ruby/object:Gem::Dependency
34
28
  name: activesupport
35
29
  requirement: !ruby/object:Gem::Requirement
36
30
  requirements:
37
- - - "~>"
38
- - !ruby/object:Gem::Version
39
- version: 6.1.6
40
31
  - - ">="
41
32
  - !ruby/object:Gem::Version
42
- version: 6.1.6.1
33
+ version: 6.1.7.6
43
34
  type: :runtime
44
35
  prerelease: false
45
36
  version_requirements: !ruby/object:Gem::Requirement
46
37
  requirements:
47
- - - "~>"
48
- - !ruby/object:Gem::Version
49
- version: 6.1.6
50
38
  - - ">="
51
39
  - !ruby/object:Gem::Version
52
- version: 6.1.6.1
40
+ version: 6.1.7.6
53
41
  - !ruby/object:Gem::Dependency
54
42
  name: awesome_spawn
55
43
  requirement: !ruby/object:Gem::Requirement
56
44
  requirements:
57
45
  - - "~>"
58
46
  - !ruby/object:Gem::Version
59
- version: '1.4'
47
+ version: '1.6'
60
48
  type: :runtime
61
49
  prerelease: false
62
50
  version_requirements: !ruby/object:Gem::Requirement
63
51
  requirements:
64
52
  - - "~>"
65
53
  - !ruby/object:Gem::Version
66
- version: '1.4'
54
+ version: '1.6'
67
55
  - !ruby/object:Gem::Dependency
68
56
  name: bcrypt
69
57
  requirement: !ruby/object:Gem::Requirement
@@ -104,14 +92,14 @@ dependencies:
104
92
  requirements:
105
93
  - - "~>"
106
94
  - !ruby/object:Gem::Version
107
- version: 1.6.21
95
+ version: '2.1'
108
96
  type: :runtime
109
97
  prerelease: false
110
98
  version_requirements: !ruby/object:Gem::Requirement
111
99
  requirements:
112
100
  - - "~>"
113
101
  - !ruby/object:Gem::Version
114
- version: 1.6.21
102
+ version: '2.1'
115
103
  - !ruby/object:Gem::Dependency
116
104
  name: i18n
117
105
  requirement: !ruby/object:Gem::Requirement
@@ -244,20 +232,6 @@ dependencies:
244
232
  - - ">="
245
233
  - !ruby/object:Gem::Version
246
234
  version: '0'
247
- - !ruby/object:Gem::Dependency
248
- name: codeclimate-test-reporter
249
- requirement: !ruby/object:Gem::Requirement
250
- requirements:
251
- - - "~>"
252
- - !ruby/object:Gem::Version
253
- version: 1.0.0
254
- type: :development
255
- prerelease: false
256
- version_requirements: !ruby/object:Gem::Requirement
257
- requirements:
258
- - - "~>"
259
- - !ruby/object:Gem::Version
260
- version: 1.0.0
261
235
  - !ruby/object:Gem::Dependency
262
236
  name: manageiq-style
263
237
  requirement: !ruby/object:Gem::Requirement
@@ -320,14 +294,14 @@ dependencies:
320
294
  requirements:
321
295
  - - ">="
322
296
  - !ruby/object:Gem::Version
323
- version: '0'
297
+ version: 0.21.2
324
298
  type: :development
325
299
  prerelease: false
326
300
  version_requirements: !ruby/object:Gem::Requirement
327
301
  requirements:
328
302
  - - ">="
329
303
  - !ruby/object:Gem::Version
330
- version: '0'
304
+ version: 0.21.2
331
305
  description: ManageIQ Appliance Console
332
306
  email:
333
307
  executables:
@@ -337,15 +311,16 @@ extensions: []
337
311
  extra_rdoc_files: []
338
312
  files:
339
313
  - ".codeclimate.yml"
314
+ - ".github/workflows/ci.yaml"
340
315
  - ".gitignore"
341
316
  - ".rspec"
342
317
  - ".rspec_ci"
343
318
  - ".rubocop.yml"
344
319
  - ".rubocop_cc.yml"
345
320
  - ".rubocop_local.yml"
346
- - ".travis.yml"
347
321
  - ".whitesource"
348
322
  - ".yamllint"
323
+ - CHANGELOG.md
349
324
  - Gemfile
350
325
  - LICENSE.txt
351
326
  - README.md
@@ -363,6 +338,7 @@ files:
363
338
  - lib/manageiq/appliance_console/database_replication_primary.rb
364
339
  - lib/manageiq/appliance_console/database_replication_standby.rb
365
340
  - lib/manageiq/appliance_console/errors.rb
341
+ - lib/manageiq/appliance_console/evm_server.rb
366
342
  - lib/manageiq/appliance_console/external_auth_options.rb
367
343
  - lib/manageiq/appliance_console/external_database_configuration.rb
368
344
  - lib/manageiq/appliance_console/external_httpd_authentication.rb
data/.travis.yml DELETED
@@ -1,22 +0,0 @@
1
- ---
2
- language: ruby
3
- rvm:
4
- - 2.6.6
5
- - 2.7.2
6
- cache: bundler
7
- addons:
8
- postgresql: '10'
9
- env:
10
- global:
11
- - RUBY_GC_HEAP_GROWTH_MAX_SLOTS=300000
12
- - RUBY_GC_HEAP_INIT_SLOTS=600000
13
- - RUBY_GC_HEAP_GROWTH_FACTOR=1.25
14
- after_script: bundle exec codeclimate-test-reporter
15
- notifications:
16
- webhooks:
17
- urls:
18
- - https://webhooks.gitter.im/e/115ada1099c46977b0d3
19
- on_success: change
20
- on_failure: always
21
- on_start: never
22
- dist: bionic