Skip to content

Commit e27fa40

Browse files
yjeankim-glMayra Cabrera
andcommitted
Merge branch 'revert-bd03682b' into 'master'
Revert "Merge branch 'chef-18-update' into 'master'" See merge request https://gitlab.com/gitlab-org/omnibus-gitlab/-/merge_requests/7360 Merged-by: Jenny Kim <[email protected]> Approved-by: Jenny Kim <[email protected]> Approved-by: Jason Plum <[email protected]> Co-authored-by: Mayra Cabrera <[email protected]>
2 parents 3c3957a + 45d0085 commit e27fa40

File tree

5 files changed

+56
-80
lines changed

5 files changed

+56
-80
lines changed

Gemfile

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,12 @@ 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', '~> 18.3.0'
25+
gem 'chef', '~> 17.10.0'
2626
gem 'chef-cli', '~> 5.6.1'
2727
gem 'chef-utils'
2828
gem 'mixlib-versioning'
2929
end
30-
gem 'unf_ext', '~>0.0.9.1'
31-
gem 'ohai', '~> 18.0'
30+
gem 'ohai', '~> 17.0'
3231
gem 'rainbow', '~> 2.2' # This is used by gitlab-ctl and the chef formatter
3332
gem 'json'
3433
gem 'rspec'

Gemfile.lock

Lines changed: 47 additions & 64 deletions
Original file line numberDiff line numberDiff line change
@@ -20,38 +20,35 @@ GIT
2020
GEM
2121
remote: https://packagecloud.io/cinc-project/stable/
2222
specs:
23-
chef (18.3.0)
23+
chef (17.10.0)
2424
addressable
2525
aws-sdk-s3 (~> 1.91)
2626
aws-sdk-secretsmanager (~> 1.46)
27-
chef-config (= 18.3.0)
28-
chef-utils (= 18.3.0)
27+
chef-config (= 17.10.0)
28+
chef-utils (= 17.10.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.15.5)
34+
ffi (>= 1.5.0)
3535
ffi-libarchive (~> 1.0, >= 1.0.3)
3636
ffi-yajl (~> 2.2)
3737
iniparse (~> 1.4)
38-
inspec-core (>= 5)
38+
inspec-core (~> 4.23)
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-ftp
46-
net-sftp (>= 2.1.2, < 5.0)
47-
ohai (~> 18.0)
45+
net-sftp (>= 2.1.2, < 4.0)
46+
ohai (~> 17.0)
4847
plist (~> 3.2)
49-
proxifier2 (~> 1.1)
48+
proxifier (~> 1.0)
5049
syslog-logger (~> 1.6)
51-
train-core (~> 3.10)
52-
train-rest (>= 0.4.1)
50+
train-core (~> 3.2, >= 3.2.28)
5351
train-winrm (>= 0.2.5)
54-
unf_ext (>= 0.0.8.2)
5552
uuidtools (>= 2.1.5, < 3.0)
5653
vault (~> 0.16)
5754
chef-cli (5.6.1)
@@ -66,14 +63,14 @@ GEM
6663
mixlib-shellout (>= 2.0, < 4.0)
6764
pastel (~> 0.7)
6865
solve (> 2.0, < 5.0)
69-
chef-config (18.3.0)
66+
chef-config (17.10.0)
7067
addressable
71-
chef-utils (= 18.3.0)
68+
chef-utils (= 17.10.0)
7269
fuzzyurl
7370
mixlib-config (>= 2.2.12, < 4.0)
7471
mixlib-shellout (>= 2.0, < 4.0)
7572
tomlrb (~> 1.2)
76-
chef-utils (18.3.0)
73+
chef-utils (17.10.0)
7774
concurrent-ruby
7875
chef-zero (15.0.11)
7976
ffi-yajl (~> 2.2)
@@ -82,30 +79,31 @@ GEM
8279
rack (~> 2.0, >= 2.0.6)
8380
uuidtools (~> 2.1)
8481
webrick
85-
inspec-core (5.22.36)
82+
inspec-core (4.56.20)
8683
addressable (~> 2.4)
8784
chef-telemetry (~> 1.0, >= 1.0.8)
88-
faraday (>= 1, < 3)
89-
faraday-follow_redirects (~> 0.3)
90-
hashie (>= 3.4, < 6.0)
85+
faraday (>= 0.9.0, < 1.5)
86+
faraday_middleware (~> 1.0)
87+
hashie (>= 3.4, < 5.0)
9188
license-acceptance (>= 0.2.13, < 3.0)
9289
method_source (>= 0.8, < 2.0)
9390
mixlib-log (~> 3.0)
9491
multipart-post (~> 2.0)
9592
parallel (~> 1.9)
96-
parslet (>= 1.5, < 3.0)
93+
parslet (>= 1.5, < 2.0)
9794
pry (~> 0.13)
98-
rspec (>= 3.9, <= 3.12)
95+
rspec (>= 3.9, <= 3.11)
9996
rspec-its (~> 1.2)
10097
rubyzip (>= 1.2.2, < 3.0)
10198
semverse (~> 3.0)
10299
sslshake (~> 1.2)
103-
thor (>= 0.20, < 1.3.0)
100+
thor (>= 0.20, < 2.0)
104101
tomlrb (>= 1.2, < 2.1)
105-
train-core (~> 3.10)
102+
train-core (~> 3.0)
106103
tty-prompt (~> 0.17)
107104
tty-table (~> 0.10)
108105
mixlib-versioning (1.2.12)
106+
unf_ext (0.0.7.2)
109107

110108
GEM
111109
remote: https://rubygems.org/
@@ -140,8 +138,8 @@ GEM
140138
aws-sdk-core (~> 3, >= 3.127.0)
141139
aws-sdk-kms (~> 1)
142140
aws-sigv4 (~> 1.4)
143-
aws-sdk-secretsmanager (1.75.0)
144-
aws-sdk-core (~> 3, >= 3.165.0)
141+
aws-sdk-secretsmanager (1.60.0)
142+
aws-sdk-core (~> 3, >= 3.127.0)
145143
aws-sigv4 (~> 1.1)
146144
aws-sigv4 (1.5.2)
147145
aws-eventstream (~> 1, >= 1.0.2)
@@ -152,7 +150,7 @@ GEM
152150
chef-telemetry (1.1.1)
153151
chef-config
154152
concurrent-ruby (~> 1.0)
155-
chef-vault (4.1.11)
153+
chef-vault (4.1.10)
156154
chefspec (9.3.3)
157155
chef (>= 15)
158156
chef-cli
@@ -190,7 +188,6 @@ GEM
190188
danger-gitlab (8.0.0)
191189
danger
192190
gitlab (~> 4.2, >= 4.2.0)
193-
date (3.3.4)
194191
debug (1.6.1)
195192
irb (>= 1.3.6)
196193
reline (>= 0.3.1)
@@ -205,7 +202,7 @@ GEM
205202
multi_json
206203
domain_name (0.5.20190701)
207204
unf (>= 0.0.5, < 1.0.0)
208-
erubi (1.12.0)
205+
erubi (1.11.0)
209206
erubis (2.7.0)
210207
excon (0.76.0)
211208
fantaskspec (1.2.0)
@@ -222,19 +219,19 @@ GEM
222219
faraday-em_http (1.0.0)
223220
faraday-em_synchrony (1.0.0)
224221
faraday-excon (1.1.0)
225-
faraday-follow_redirects (0.3.0)
226-
faraday (>= 1, < 3)
227222
faraday-http-cache (2.4.1)
228223
faraday (>= 0.8)
229224
faraday-net_http (1.0.1)
230225
faraday-net_http_persistent (1.2.0)
226+
faraday_middleware (1.2.0)
227+
faraday (~> 1.0)
231228
fauxhai-ng (8.7.0)
232229
net-ssh
233230
ffi (1.15.5)
234231
ffi-compiler (1.0.1)
235232
ffi (>= 1.0.0)
236233
rake
237-
ffi-libarchive (1.1.13)
234+
ffi-libarchive (1.1.3)
238235
ffi (~> 1.0)
239236
ffi-yajl (2.4.0)
240237
libyajl2 (>= 1.2)
@@ -337,7 +334,7 @@ GEM
337334
llhttp-ffi (0.4.0)
338335
ffi-compiler (~> 1.0)
339336
rake (~> 13.0)
340-
logging (2.3.1)
337+
logging (2.3.0)
341338
little-plugger (~> 1.1)
342339
multi_json (~> 1.14)
343340
memoist (0.16.2)
@@ -352,7 +349,7 @@ GEM
352349
mixlib-log
353350
mixlib-authentication (3.0.10)
354351
mixlib-cli (2.1.8)
355-
mixlib-config (3.0.27)
352+
mixlib-config (3.0.9)
356353
tomlrb
357354
mixlib-log (3.0.9)
358355
mixlib-shellout (3.2.7)
@@ -362,25 +359,20 @@ GEM
362359
multi_xml (0.6.0)
363360
multipart-post (2.1.1)
364361
nap (1.1.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)
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)
374366
net-ssh (6.1.0)
375367
netrc (0.11.0)
376368
no_proxy_fix (0.1.2)
377369
nori (2.6.0)
378370
octokit (4.25.1)
379371
faraday (>= 1, < 3)
380372
sawyer (~> 0.9)
381-
ohai (18.1.3)
382-
chef-config (>= 14.12, < 19)
383-
chef-utils (>= 16.0, < 19)
373+
ohai (17.9.0)
374+
chef-config (>= 14.12, < 18)
375+
chef-utils (>= 16.0, < 18)
384376
ffi (~> 1.9)
385377
ffi-yajl (~> 2.2)
386378
ipaddress
@@ -403,7 +395,7 @@ GEM
403395
parallel (1.19.2)
404396
parser (3.2.2.1)
405397
ast (~> 2.4.1)
406-
parslet (2.0.0)
398+
parslet (1.8.2)
407399
pastel (0.8.0)
408400
tty-color (~> 0.5)
409401
pedump (0.6.6)
@@ -412,13 +404,13 @@ GEM
412404
multipart-post (>= 2.0.0)
413405
rainbow
414406
zhexdump (>= 0.0.2)
415-
plist (3.7.1)
407+
plist (3.6.0)
416408
proc_to_ast (0.1.0)
417409
coderay
418410
parser
419411
unparser
420-
proxifier2 (1.1.0)
421-
pry (0.14.2)
412+
proxifier (1.0.3)
413+
pry (0.14.1)
422414
coderay (~> 1.1)
423415
method_source (~> 1.0)
424416
public_suffix (5.0.0)
@@ -530,25 +522,18 @@ GEM
530522
terminal-table (1.8.0)
531523
unicode-display_width (~> 1.1, >= 1.1.1)
532524
thor (1.2.1)
533-
time (0.3.0)
534-
date
535-
timeout (0.4.1)
536525
toml-rb (2.2.0)
537526
citrus (~> 3.0, > 3.0)
538527
tomlib (0.6.0)
539528
tomlrb (1.3.0)
540529
trailblazer-option (0.1.2)
541-
train-core (3.11.0)
530+
train-core (3.9.2)
542531
addressable (~> 2.5)
543532
ffi (!= 1.13.0)
544533
json (>= 1.8, < 3.0)
545534
mixlib-shellout (>= 2.0, < 4.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)
535+
net-scp (>= 1.2, < 4.0)
536+
net-ssh (>= 2.9, < 7.0)
552537
train-winrm (0.2.13)
553538
winrm (>= 2.3.6, < 3.0)
554539
winrm-elevated (~> 1.2.2)
@@ -576,14 +561,13 @@ GEM
576561
uber (0.1.0)
577562
unf (0.1.4)
578563
unf_ext
579-
unf_ext (0.0.9.1)
580564
unicode-display_width (1.8.0)
581565
unicode_utils (1.4.0)
582566
unparser (0.6.7)
583567
diff-lcs (~> 1.3)
584568
parser (>= 3.2.0)
585569
uuidtools (2.2.0)
586-
vault (0.18.2)
570+
vault (0.16.0)
587571
aws-sigv4
588572
webrick (1.7.0)
589573
winrm (2.3.6)
@@ -616,7 +600,7 @@ PLATFORMS
616600
DEPENDENCIES
617601
aws-sdk-ec2
618602
aws-sdk-marketplacecatalog
619-
chef (~> 18.3.0)!
603+
chef (~> 17.10.0)!
620604
chef-cli (~> 5.6.1)!
621605
chef-utils!
622606
chefspec
@@ -631,7 +615,7 @@ DEPENDENCIES
631615
json
632616
knapsack
633617
mixlib-versioning!
634-
ohai (~> 18.0)
618+
ohai (~> 17.0)
635619
omnibus!
636620
omnibus-ctl (= 0.3.6)
637621
package_cloud
@@ -645,7 +629,6 @@ DEPENDENCIES
645629
thor (~> 1.2)
646630
toml-rb
647631
tomlib (~> 0.6.0)
648-
unf_ext (~> 0.0.9.1)
649632
yard
650633

651634
BUNDLED WITH

config/software/chef-bin.rb

Lines changed: 1 addition & 11 deletions
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 '18.3.0'
21+
default_version '17.10.0'
2222

2323
license 'Apache-2.0'
2424
license_file 'LICENSE'
@@ -32,16 +32,6 @@
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
4535
gem 'install chef-bin' \
4636
" --clear-sources" \
4737
" -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 '18.3.0'
23+
default_version '17.10.0'
2424

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

config/software/ohai.rb

Lines changed: 5 additions & 1 deletion
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 '18.1.3'
20+
default_version '17.9.4'
2121

2222
license 'Apache-2.0'
2323
license_file 'LICENSE'
@@ -33,6 +33,10 @@
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+
3640
gem 'install ohai' \
3741
" --version '#{version}'" \
3842
" --bindir '#{install_dir}/embedded/bin'" \

0 commit comments

Comments
 (0)