Skip to content

Commit db9b432

Browse files
Robert Marshallbalasankarc
authored andcommitted
Update Cinc/Ohai to 18.x series
- Add unf_ext gem because it is a direct dependency for Cinc versions greater than 18.0.169 - Updates Cinc gem from 17.10.95 to 18.3.0 - Updates Ohai gem from 17.9.0 to 18.1.3 - Updates software config for chef-bin, chef-gem, and ohai - Remove ohai gem version workaround Closes https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/8294 Changelog: changed Signed-off-by: Robert Marshall <[email protected]>
1 parent baca027 commit db9b432

File tree

5 files changed

+80
-56
lines changed

5 files changed

+80
-56
lines changed

Gemfile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,13 @@ omnibus_gem_version = Gitlab::Version.new('omnibus')
2222
# grep "gem 'install " config/software/*
2323
gem 'omnibus', git: omnibus_gem_version.remote(Gitlab::Version::ALTERNATIVE_SOURCE), tag: omnibus_gem_version.print(false)
2424
source 'https://packagecloud.io/cinc-project/stable' do
25-
gem 'chef', '~> 17.10.0'
25+
gem 'chef', '~> 18.3.0'
2626
gem 'chef-cli', '~> 5.6.1'
2727
gem 'chef-utils'
2828
gem 'mixlib-versioning'
2929
end
30-
gem 'ohai', '~> 17.0'
30+
gem 'unf_ext', '~>0.0.9.1'
31+
gem 'ohai', '~> 18.0'
3132
gem 'rainbow', '~> 2.2' # This is used by gitlab-ctl and the chef formatter
3233
gem 'json'
3334
gem 'rspec'

Gemfile.lock

Lines changed: 64 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -20,35 +20,38 @@ GIT
2020
GEM
2121
remote: https://packagecloud.io/cinc-project/stable/
2222
specs:
23-
chef (17.10.0)
23+
chef (18.3.0)
2424
addressable
2525
aws-sdk-s3 (~> 1.91)
2626
aws-sdk-secretsmanager (~> 1.46)
27-
chef-config (= 17.10.0)
28-
chef-utils (= 17.10.0)
27+
chef-config (= 18.3.0)
28+
chef-utils (= 18.3.0)
2929
chef-vault
3030
chef-zero (>= 14.0.11)
3131
corefoundation (~> 0.3.4)
3232
diff-lcs (>= 1.2.4, < 1.6.0, != 1.4.0)
3333
erubis (~> 2.7)
34-
ffi (>= 1.5.0)
34+
ffi (>= 1.15.5)
3535
ffi-libarchive (~> 1.0, >= 1.0.3)
3636
ffi-yajl (~> 2.2)
3737
iniparse (~> 1.4)
38-
inspec-core (~> 4.23)
38+
inspec-core (>= 5)
3939
license-acceptance (>= 1.0.5, < 3)
4040
mixlib-archive (>= 0.4, < 2.0)
4141
mixlib-authentication (>= 2.1, < 4)
4242
mixlib-cli (>= 2.1.1, < 3.0)
4343
mixlib-log (>= 2.0.3, < 4.0)
4444
mixlib-shellout (>= 3.1.1, < 4.0)
45-
net-sftp (>= 2.1.2, < 4.0)
46-
ohai (~> 17.0)
45+
net-ftp
46+
net-sftp (>= 2.1.2, < 5.0)
47+
ohai (~> 18.0)
4748
plist (~> 3.2)
48-
proxifier (~> 1.0)
49+
proxifier2 (~> 1.1)
4950
syslog-logger (~> 1.6)
50-
train-core (~> 3.2, >= 3.2.28)
51+
train-core (~> 3.10)
52+
train-rest (>= 0.4.1)
5153
train-winrm (>= 0.2.5)
54+
unf_ext (>= 0.0.8.2)
5255
uuidtools (>= 2.1.5, < 3.0)
5356
vault (~> 0.16)
5457
chef-cli (5.6.1)
@@ -63,14 +66,14 @@ GEM
6366
mixlib-shellout (>= 2.0, < 4.0)
6467
pastel (~> 0.7)
6568
solve (> 2.0, < 5.0)
66-
chef-config (17.10.0)
69+
chef-config (18.3.0)
6770
addressable
68-
chef-utils (= 17.10.0)
71+
chef-utils (= 18.3.0)
6972
fuzzyurl
7073
mixlib-config (>= 2.2.12, < 4.0)
7174
mixlib-shellout (>= 2.0, < 4.0)
7275
tomlrb (~> 1.2)
73-
chef-utils (17.10.0)
76+
chef-utils (18.3.0)
7477
concurrent-ruby
7578
chef-zero (15.0.11)
7679
ffi-yajl (~> 2.2)
@@ -79,31 +82,30 @@ GEM
7982
rack (~> 2.0, >= 2.0.6)
8083
uuidtools (~> 2.1)
8184
webrick
82-
inspec-core (4.56.20)
85+
inspec-core (5.22.36)
8386
addressable (~> 2.4)
8487
chef-telemetry (~> 1.0, >= 1.0.8)
85-
faraday (>= 0.9.0, < 1.5)
86-
faraday_middleware (~> 1.0)
87-
hashie (>= 3.4, < 5.0)
88+
faraday (>= 1, < 3)
89+
faraday-follow_redirects (~> 0.3)
90+
hashie (>= 3.4, < 6.0)
8891
license-acceptance (>= 0.2.13, < 3.0)
8992
method_source (>= 0.8, < 2.0)
9093
mixlib-log (~> 3.0)
9194
multipart-post (~> 2.0)
9295
parallel (~> 1.9)
93-
parslet (>= 1.5, < 2.0)
96+
parslet (>= 1.5, < 3.0)
9497
pry (~> 0.13)
95-
rspec (>= 3.9, <= 3.11)
98+
rspec (>= 3.9, <= 3.12)
9699
rspec-its (~> 1.2)
97100
rubyzip (>= 1.2.2, < 3.0)
98101
semverse (~> 3.0)
99102
sslshake (~> 1.2)
100-
thor (>= 0.20, < 2.0)
103+
thor (>= 0.20, < 1.3.0)
101104
tomlrb (>= 1.2, < 2.1)
102-
train-core (~> 3.0)
105+
train-core (~> 3.10)
103106
tty-prompt (~> 0.17)
104107
tty-table (~> 0.10)
105108
mixlib-versioning (1.2.12)
106-
unf_ext (0.0.7.2)
107109

108110
GEM
109111
remote: https://rubygems.org/
@@ -138,8 +140,8 @@ GEM
138140
aws-sdk-core (~> 3, >= 3.127.0)
139141
aws-sdk-kms (~> 1)
140142
aws-sigv4 (~> 1.4)
141-
aws-sdk-secretsmanager (1.60.0)
142-
aws-sdk-core (~> 3, >= 3.127.0)
143+
aws-sdk-secretsmanager (1.75.0)
144+
aws-sdk-core (~> 3, >= 3.165.0)
143145
aws-sigv4 (~> 1.1)
144146
aws-sigv4 (1.5.2)
145147
aws-eventstream (~> 1, >= 1.0.2)
@@ -150,7 +152,7 @@ GEM
150152
chef-telemetry (1.1.1)
151153
chef-config
152154
concurrent-ruby (~> 1.0)
153-
chef-vault (4.1.10)
155+
chef-vault (4.1.11)
154156
chefspec (9.3.3)
155157
chef (>= 15)
156158
chef-cli
@@ -188,6 +190,7 @@ GEM
188190
danger-gitlab (8.0.0)
189191
danger
190192
gitlab (~> 4.2, >= 4.2.0)
193+
date (3.3.4)
191194
debug (1.6.1)
192195
irb (>= 1.3.6)
193196
reline (>= 0.3.1)
@@ -202,7 +205,7 @@ GEM
202205
multi_json
203206
domain_name (0.5.20190701)
204207
unf (>= 0.0.5, < 1.0.0)
205-
erubi (1.11.0)
208+
erubi (1.12.0)
206209
erubis (2.7.0)
207210
excon (0.76.0)
208211
fantaskspec (1.2.0)
@@ -219,19 +222,19 @@ GEM
219222
faraday-em_http (1.0.0)
220223
faraday-em_synchrony (1.0.0)
221224
faraday-excon (1.1.0)
225+
faraday-follow_redirects (0.3.0)
226+
faraday (>= 1, < 3)
222227
faraday-http-cache (2.4.1)
223228
faraday (>= 0.8)
224229
faraday-net_http (1.0.1)
225230
faraday-net_http_persistent (1.2.0)
226-
faraday_middleware (1.2.0)
227-
faraday (~> 1.0)
228231
fauxhai-ng (8.7.0)
229232
net-ssh
230233
ffi (1.15.5)
231234
ffi-compiler (1.0.1)
232235
ffi (>= 1.0.0)
233236
rake
234-
ffi-libarchive (1.1.3)
237+
ffi-libarchive (1.1.13)
235238
ffi (~> 1.0)
236239
ffi-yajl (2.4.0)
237240
libyajl2 (>= 1.2)
@@ -334,7 +337,7 @@ GEM
334337
llhttp-ffi (0.4.0)
335338
ffi-compiler (~> 1.0)
336339
rake (~> 13.0)
337-
logging (2.3.0)
340+
logging (2.3.1)
338341
little-plugger (~> 1.1)
339342
multi_json (~> 1.14)
340343
memoist (0.16.2)
@@ -349,7 +352,7 @@ GEM
349352
mixlib-log
350353
mixlib-authentication (3.0.10)
351354
mixlib-cli (2.1.8)
352-
mixlib-config (3.0.9)
355+
mixlib-config (3.0.27)
353356
tomlrb
354357
mixlib-log (3.0.9)
355358
mixlib-shellout (3.2.7)
@@ -359,20 +362,25 @@ GEM
359362
multi_xml (0.6.0)
360363
multipart-post (2.1.1)
361364
nap (1.1.0)
362-
net-scp (3.0.0)
363-
net-ssh (>= 2.6.5, < 7.0.0)
364-
net-sftp (3.0.0)
365-
net-ssh (>= 5.0.0, < 7.0.0)
365+
net-ftp (0.3.4)
366+
net-protocol
367+
time
368+
net-protocol (0.2.2)
369+
timeout
370+
net-scp (4.0.0)
371+
net-ssh (>= 2.6.5, < 8.0.0)
372+
net-sftp (4.0.0)
373+
net-ssh (>= 5.0.0, < 8.0.0)
366374
net-ssh (6.1.0)
367375
netrc (0.11.0)
368376
no_proxy_fix (0.1.2)
369377
nori (2.6.0)
370378
octokit (4.25.1)
371379
faraday (>= 1, < 3)
372380
sawyer (~> 0.9)
373-
ohai (17.9.0)
374-
chef-config (>= 14.12, < 18)
375-
chef-utils (>= 16.0, < 18)
381+
ohai (18.1.3)
382+
chef-config (>= 14.12, < 19)
383+
chef-utils (>= 16.0, < 19)
376384
ffi (~> 1.9)
377385
ffi-yajl (~> 2.2)
378386
ipaddress
@@ -395,7 +403,7 @@ GEM
395403
parallel (1.19.2)
396404
parser (3.2.2.1)
397405
ast (~> 2.4.1)
398-
parslet (1.8.2)
406+
parslet (2.0.0)
399407
pastel (0.8.0)
400408
tty-color (~> 0.5)
401409
pedump (0.6.6)
@@ -404,13 +412,13 @@ GEM
404412
multipart-post (>= 2.0.0)
405413
rainbow
406414
zhexdump (>= 0.0.2)
407-
plist (3.6.0)
415+
plist (3.7.1)
408416
proc_to_ast (0.1.0)
409417
coderay
410418
parser
411419
unparser
412-
proxifier (1.0.3)
413-
pry (0.14.1)
420+
proxifier2 (1.1.0)
421+
pry (0.14.2)
414422
coderay (~> 1.1)
415423
method_source (~> 1.0)
416424
public_suffix (5.0.0)
@@ -522,18 +530,25 @@ GEM
522530
terminal-table (1.8.0)
523531
unicode-display_width (~> 1.1, >= 1.1.1)
524532
thor (1.2.1)
533+
time (0.3.0)
534+
date
535+
timeout (0.4.1)
525536
toml-rb (2.2.0)
526537
citrus (~> 3.0, > 3.0)
527538
tomlib (0.6.0)
528539
tomlrb (1.3.0)
529540
trailblazer-option (0.1.2)
530-
train-core (3.9.2)
541+
train-core (3.11.0)
531542
addressable (~> 2.5)
532543
ffi (!= 1.13.0)
533544
json (>= 1.8, < 3.0)
534545
mixlib-shellout (>= 2.0, < 4.0)
535-
net-scp (>= 1.2, < 4.0)
536-
net-ssh (>= 2.9, < 7.0)
546+
net-scp (>= 1.2, < 5.0)
547+
net-ssh (>= 2.9, < 8.0)
548+
train-rest (0.5.0)
549+
aws-sigv4 (~> 1.5)
550+
rest-client (~> 2.1)
551+
train-core (~> 3.0)
537552
train-winrm (0.2.13)
538553
winrm (>= 2.3.6, < 3.0)
539554
winrm-elevated (~> 1.2.2)
@@ -561,13 +576,14 @@ GEM
561576
uber (0.1.0)
562577
unf (0.1.4)
563578
unf_ext
579+
unf_ext (0.0.9.1)
564580
unicode-display_width (1.8.0)
565581
unicode_utils (1.4.0)
566582
unparser (0.6.7)
567583
diff-lcs (~> 1.3)
568584
parser (>= 3.2.0)
569585
uuidtools (2.2.0)
570-
vault (0.16.0)
586+
vault (0.18.2)
571587
aws-sigv4
572588
webrick (1.7.0)
573589
winrm (2.3.6)
@@ -600,7 +616,7 @@ PLATFORMS
600616
DEPENDENCIES
601617
aws-sdk-ec2
602618
aws-sdk-marketplacecatalog
603-
chef (~> 17.10.0)!
619+
chef (~> 18.3.0)!
604620
chef-cli (~> 5.6.1)!
605621
chef-utils!
606622
chefspec
@@ -615,7 +631,7 @@ DEPENDENCIES
615631
json
616632
knapsack
617633
mixlib-versioning!
618-
ohai (~> 17.0)
634+
ohai (~> 18.0)
619635
omnibus!
620636
omnibus-ctl (= 0.3.6)
621637
package_cloud
@@ -629,6 +645,7 @@ DEPENDENCIES
629645
thor (~> 1.2)
630646
toml-rb
631647
tomlib (~> 0.6.0)
648+
unf_ext (~> 0.0.9.1)
632649
yard
633650

634651
BUNDLED WITH

config/software/chef-bin.rb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
# The version here should be in agreement with the chef-gem version and
1919
# /Gemfile.lock so that our rspec testing stays consistent with the package
2020
# contents.
21-
default_version '17.10.0'
21+
default_version '18.3.0'
2222

2323
license 'Apache-2.0'
2424
license_file 'LICENSE'
@@ -32,6 +32,16 @@
3232
env = with_standard_compiler_flags(with_embedded_path)
3333
patch source: 'add-license-file.patch'
3434

35+
# Temporary workaround because upstream inspec-core does not list this as
36+
# a requirement and it causes failures during gitlab-ctl reconfigure in
37+
# the QA job pipelines
38+
gem 'install rubocop-ast' \
39+
" --clear-sources" \
40+
" -s https://packagecloud.io/cinc-project/stable" \
41+
" -s https://rubygems.org" \
42+
" --version '1.21.0'" \
43+
" --bindir '#{install_dir}/embedded/bin'" \
44+
' --no-document', env: env
3545
gem 'install chef-bin' \
3646
" --clear-sources" \
3747
" -s https://packagecloud.io/cinc-project/stable" \

config/software/chef-gem.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# The version here should be in agreement with the chef-bin/cinc version and
2121
# /Gemfile.lock so that our rspec testing stays consistent with the package
2222
# contents.
23-
default_version '17.10.0'
23+
default_version '18.3.0'
2424

2525
license 'Apache-2.0'
2626
license_file 'LICENSE'

config/software/ohai.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
name 'ohai'
1818
# The version here should be in agreement with /Gemfile.lock so that our rspec
1919
# testing stays consistent with the package contents.
20-
default_version '17.9.4'
20+
default_version '18.1.3'
2121

2222
license 'Apache-2.0'
2323
license_file 'LICENSE'
@@ -33,10 +33,6 @@
3333
patch source: "license/add-notice-file.patch"
3434
env = with_standard_compiler_flags(with_embedded_path)
3535

36-
# Install a known good version of chef-config to workaround
37-
# https://gitlab.com/gitlab-org/omnibus-gitlab/-/issues/7267
38-
gem "install chef-config --version '17.10.19' --no-document", env: env
39-
4036
gem 'install ohai' \
4137
" --version '#{version}'" \
4238
" --bindir '#{install_dir}/embedded/bin'" \

0 commit comments

Comments
 (0)