xolo-admin 2.2.2 → 2.2.3
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/lib/xolo/admin/options.rb +12 -0
- data/lib/xolo/admin/processing.rb +25 -4
- data/lib/xolo/core/base_classes/title.rb +1 -1
- data/lib/xolo/core/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 857b7c06e0c9ed5ae064b1cb7c9270341a9ac1abdfdeec8cc1ab648435db20e8
|
|
4
|
+
data.tar.gz: 16f4edacf06637787b409f32fc86619e9e1a4910b31103d0323b6e0bc244e2c2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cf0e7d27e355ea94392c1ebbc96fadc4778b40476d6ab70b53ccee672c9742da95d3f8adf330275dc44370d5e8c4dcfb431a2f29503814ad1f19d93745fa4019
|
|
7
|
+
data.tar.gz: 1e8b5ffb2ac2f473536d6624da8945382eb1e23f291ab89b9430dd4d4b5324473397d60b9d48217e5727cfa81fb7005c3e36299bb6372127dc10818d8ffef84b
|
data/lib/xolo/admin/options.rb
CHANGED
|
@@ -263,7 +263,19 @@ module Xolo
|
|
|
263
263
|
desc: <<~ENDDESC
|
|
264
264
|
Show only titles that are available for updates via Self Service. To see those with initial installation via Self Service, use --self-service.
|
|
265
265
|
ENDDESC
|
|
266
|
+
},
|
|
267
|
+
|
|
268
|
+
released_to_all: {
|
|
269
|
+
label: 'Released to All',
|
|
270
|
+
cli: :A,
|
|
271
|
+
type: :boolean,
|
|
272
|
+
validate: :validate_boolean,
|
|
273
|
+
default: false,
|
|
274
|
+
desc: <<~ENDDESC
|
|
275
|
+
Show only titles that have --release-groups set to 'all'.
|
|
276
|
+
ENDDESC
|
|
266
277
|
}
|
|
278
|
+
|
|
267
279
|
}.freeze
|
|
268
280
|
|
|
269
281
|
PATCH_REPORT_OPTIONS = {
|
|
@@ -37,6 +37,10 @@ module Xolo
|
|
|
37
37
|
# the lack of sinatra and such.
|
|
38
38
|
LOG_LEVELS = %w[debug info warn error fatal].freeze
|
|
39
39
|
|
|
40
|
+
INSTALL = 'Install'
|
|
41
|
+
UPDATE = 'Update'
|
|
42
|
+
INS_UPD = 'Ins & Upd'
|
|
43
|
+
|
|
40
44
|
# Module Methods
|
|
41
45
|
##########################
|
|
42
46
|
##########################
|
|
@@ -221,6 +225,7 @@ module Xolo
|
|
|
221
225
|
type ||= opts_to_process.managed ? ' managed' : nil
|
|
222
226
|
autopkg = opts_to_process.autopkg ? ' autopkg' : nil
|
|
223
227
|
pilots = opts_to_process.pilots ? ' with unreleased pilots' : nil
|
|
228
|
+
to_all = opts_to_process.released_to_all ? ",\n# released to all non-excluded computers." : nil
|
|
224
229
|
|
|
225
230
|
ssvc =
|
|
226
231
|
if opts_to_process.self_service && opts_to_process.self_service_updates
|
|
@@ -231,26 +236,42 @@ module Xolo
|
|
|
231
236
|
' updated via Self Service'
|
|
232
237
|
end
|
|
233
238
|
|
|
234
|
-
report_title = "All#{type}#{autopkg} titles in Xolo#{pilots}#{ssvc}"
|
|
239
|
+
report_title = "All#{type}#{autopkg} titles in Xolo#{pilots}#{ssvc}#{to_all}"
|
|
235
240
|
|
|
236
241
|
titles.select!(&:subscribed?) if opts_to_process.subscribed
|
|
237
242
|
titles.reject!(&:subscribed?) if opts_to_process.managed
|
|
238
243
|
titles.select!(&:autopkg_recipe) if opts_to_process.autopkg
|
|
239
|
-
titles.select! { |t| pending_pilots? t } if opts_to_process.pilots
|
|
240
244
|
titles.select!(&:self_service?) if opts_to_process.self_service
|
|
241
245
|
titles.select!(&:self_service_updates?) if opts_to_process.self_service_updates
|
|
242
246
|
|
|
243
|
-
|
|
247
|
+
# pending_pilots is a local method, not a title attribute!
|
|
248
|
+
titles.select! { |t| pending_pilots? t } if opts_to_process.pilots
|
|
249
|
+
titles.select! { |t| t.release_groups.include? Xolo::TARGET_ALL } if opts_to_process.released_to_all
|
|
250
|
+
|
|
251
|
+
header = %w[Title Created By SSvc Latest Released]
|
|
252
|
+
|
|
244
253
|
data = titles.map do |t|
|
|
254
|
+
ssvc_disp =
|
|
255
|
+
if t.self_service && t.self_service_updates
|
|
256
|
+
INS_UPD
|
|
257
|
+
elsif t.self_service
|
|
258
|
+
INSTALL
|
|
259
|
+
elsif t.self_service_updates
|
|
260
|
+
UPDATE
|
|
261
|
+
else
|
|
262
|
+
Xolo::DASH
|
|
263
|
+
end
|
|
264
|
+
|
|
245
265
|
[
|
|
246
266
|
t.title,
|
|
247
267
|
t.creation_date.to_date,
|
|
248
268
|
t.created_by,
|
|
249
|
-
|
|
269
|
+
ssvc_disp,
|
|
250
270
|
t.latest_version,
|
|
251
271
|
t.released_version
|
|
252
272
|
]
|
|
253
273
|
end
|
|
274
|
+
|
|
254
275
|
data.sort_by! { |d| d[0].downcase } # sort by title
|
|
255
276
|
|
|
256
277
|
show_text generate_report(data, header_row: header, title: report_title)
|
|
@@ -759,7 +759,7 @@ module Xolo
|
|
|
759
759
|
|
|
760
760
|
By default this is false, Patch Policies for versions will be set to 'Install Automatically'.
|
|
761
761
|
|
|
762
|
-
If set to true, Patch Policies for versions will be set to 'Make Available in Self Service' and the version will appear in the Updates section when available. The update won't happen until the user clicks a button, or the 7-day deadline passes. Notifications will be displayed daily.
|
|
762
|
+
If set to true, Patch Policies for versions will be set to 'Make Available in Self Service' and the version will appear in the Updates section when available. The update won't happen until the user clicks a button, or the 7-day deadline passes. Notifications will be displayed daily. For these titles, 'xolo update' will not apply the update, but 'xolo install <title>' will update/install the current release.
|
|
763
763
|
|
|
764
764
|
When installing automatically, or the deadline passes, the update will happen at the checkin after the next recon. If the version has any KillApps, the user will be prompted to quit them, with a grace period of 15 minutes before the update starts.
|
|
765
765
|
|
data/lib/xolo/core/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: xolo-admin
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.2.
|
|
4
|
+
version: 2.2.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Chris Lasell
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2026-08-
|
|
11
|
+
date: 2026-08-17 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: faraday
|