summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2021-11-30 12:40:00 -0800
committerTim Smith <tsmith84@gmail.com>2021-11-30 12:40:00 -0800
commit961e2e53205f95aea0f867068e77912e8552851a (patch)
treef1213c82fcfe5b14cf315328c79cc827c59355b8
parentc1986211f49995d692dcee60220983bdbcf8d56b (diff)
downloadchef-961e2e53205f95aea0f867068e77912e8552851a.tar.gz
Pin Chef to a Ruby 2.6 version to fix Solaris builds
I've created an issue with releng to get Solaris onto a Ruby 2.7+ omnibus-toolchain: https://github.com/chef/release-engineering/issues/1707 Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--omnibus/Gemfile9
-rw-r--r--omnibus/Gemfile.lock81
-rw-r--r--omnibus/README.md13
3 files changed, 61 insertions, 42 deletions
diff --git a/omnibus/Gemfile b/omnibus/Gemfile
index 10acd55554..8cdaafa877 100644
--- a/omnibus/Gemfile
+++ b/omnibus/Gemfile
@@ -9,13 +9,16 @@ gem "pedump"
# This development group is installed by default when you run `bundle install`,
# but if you are using Omnibus in a CI-based infrastructure, you do not need
# the Test Kitchen-based build lab. You can skip these unnecessary dependencies
-# by running `bundle install --without development` to speed up build times.
+# by running `bundle config set --local without development && bundle install` to speed up build times.
group :development do
# Use Berkshelf for resolving cookbook dependencies
gem "berkshelf", ">= 7.0"
- # We pin here to the last release Ohai so prevent more current chef coming in
- gem "ohai"
+ # We have to use chef/ohai 16 until all builders are on ruby >= 2.7
+ gem "ohai", "~> 16.0"
+ gem "chef", "~> 16.0"
+ gem "chef-config", "~> 16.0"
+ gem "chef-utils", "~> 16.0"
# Use Test Kitchen with Vagrant for converging the build environment
gem "test-kitchen", ">= 1.23"
diff --git a/omnibus/Gemfile.lock b/omnibus/Gemfile.lock
index 90979a9afd..d02121e634 100644
--- a/omnibus/Gemfile.lock
+++ b/omnibus/Gemfile.lock
@@ -46,9 +46,6 @@ GEM
aws-sdk-core (~> 3, >= 3.122.0)
aws-sdk-kms (~> 1)
aws-sigv4 (~> 1.4)
- aws-sdk-secretsmanager (1.52.0)
- aws-sdk-core (~> 3, >= 3.122.0)
- aws-sigv4 (~> 1.1)
aws-sigv4 (1.4.0)
aws-eventstream (~> 1, >= 1.0.2)
bcrypt_pbkdf (1.1.0)
@@ -68,20 +65,21 @@ GEM
solve (~> 4.0)
thor (>= 0.20)
builder (3.2.4)
- chef (17.7.29)
+ chef (16.17.4)
addressable
- aws-sdk-s3 (~> 1.91)
- aws-sdk-secretsmanager (~> 1.46)
- chef-config (= 17.7.29)
- chef-utils (= 17.7.29)
+ bcrypt_pbkdf (~> 1.1)
+ bundler (>= 1.10)
+ chef-config (= 16.17.4)
+ chef-utils (= 16.17.4)
chef-vault
chef-zero (>= 14.0.11)
- corefoundation (~> 0.3.4)
diff-lcs (>= 1.2.4, < 1.4.0)
+ ed25519 (~> 1.2)
erubis (~> 2.7)
- ffi (>= 1.5.0)
+ ffi (>= 1.9.25)
ffi-libarchive (~> 1.0, >= 1.0.3)
ffi-yajl (~> 2.2)
+ highline (>= 1.6.9, < 3)
iniparse (~> 1.4)
inspec-core (~> 4.23)
license-acceptance (>= 1.0.5, < 3)
@@ -91,28 +89,34 @@ GEM
mixlib-log (>= 2.0.3, < 4.0)
mixlib-shellout (>= 3.1.1, < 4.0)
net-sftp (>= 2.1.2, < 4.0)
- ohai (~> 17.0)
+ net-ssh (>= 5.1, < 7)
+ net-ssh-multi (~> 1.2, >= 1.2.1)
+ ohai (~> 16.0)
+ pastel
plist (~> 3.2)
proxifier (~> 1.0)
syslog-logger (~> 1.6)
train-core (~> 3.2, >= 3.2.28)
train-winrm (>= 0.2.5)
+ tty-prompt (~> 0.21)
+ tty-screen (~> 0.6)
+ tty-table (~> 0.11)
uuidtools (>= 2.1.5, < 3.0)
- vault (~> 0.16)
- chef (17.7.29-universal-mingw32)
+ chef (16.17.4-universal-mingw32)
addressable
- aws-sdk-s3 (~> 1.91)
- aws-sdk-secretsmanager (~> 1.46)
- chef-config (= 17.7.29)
- chef-utils (= 17.7.29)
+ bcrypt_pbkdf (~> 1.1)
+ bundler (>= 1.10)
+ chef-config (= 16.17.4)
+ chef-utils (= 16.17.4)
chef-vault
chef-zero (>= 14.0.11)
- corefoundation (~> 0.3.4)
diff-lcs (>= 1.2.4, < 1.4.0)
+ ed25519 (~> 1.2)
erubis (~> 2.7)
- ffi (>= 1.5.0)
+ ffi (>= 1.9.25)
ffi-libarchive (~> 1.0, >= 1.0.3)
ffi-yajl (~> 2.2)
+ highline (>= 1.6.9, < 3)
iniparse (~> 1.4)
inspec-core (~> 4.23)
iso8601 (>= 0.12.1, < 0.14)
@@ -123,16 +127,21 @@ GEM
mixlib-log (>= 2.0.3, < 4.0)
mixlib-shellout (>= 3.1.1, < 4.0)
net-sftp (>= 2.1.2, < 4.0)
- ohai (~> 17.0)
+ net-ssh (>= 5.1, < 7)
+ net-ssh-multi (~> 1.2, >= 1.2.1)
+ ohai (~> 16.0)
+ pastel
plist (~> 3.2)
proxifier (~> 1.0)
syslog-logger (~> 1.6)
train-core (~> 3.2, >= 3.2.28)
train-winrm (>= 0.2.5)
+ tty-prompt (~> 0.21)
+ tty-screen (~> 0.6)
+ tty-table (~> 0.11)
uuidtools (>= 2.1.5, < 3.0)
- vault (~> 0.16)
win32-api (~> 1.5.3)
- win32-certstore (~> 0.6.2)
+ win32-certstore (~> 0.5.0)
win32-event (~> 0.6.1)
win32-eventlog (= 0.6.3)
win32-mmap (~> 0.4.1)
@@ -142,9 +151,9 @@ GEM
win32-taskscheduler (~> 2.0)
wmi-lite (~> 1.0)
chef-cleanroom (1.0.4)
- chef-config (17.7.29)
+ chef-config (16.17.4)
addressable
- chef-utils (= 17.7.29)
+ chef-utils (= 16.17.4)
fuzzyurl
mixlib-config (>= 2.2.12, < 4.0)
mixlib-shellout (>= 2.0, < 4.0)
@@ -152,8 +161,7 @@ GEM
chef-telemetry (1.1.1)
chef-config
concurrent-ruby (~> 1.0)
- chef-utils (17.7.29)
- concurrent-ruby
+ chef-utils (16.17.4)
chef-vault (4.1.4)
chef-zero (15.0.11)
ffi-yajl (~> 2.2)
@@ -167,8 +175,6 @@ GEM
coderay (1.1.3)
concurrent-ruby (1.1.9)
contracts (0.16.1)
- corefoundation (0.3.4)
- ffi (>= 1.15.0)
diff-lcs (1.3)
ed25519 (1.2.4)
erubi (1.10.0)
@@ -203,6 +209,7 @@ GEM
gyoku (1.3.1)
builder (>= 2.1.2)
hashie (4.1.0)
+ highline (2.0.3)
httpclient (2.8.3)
iniparse (1.5.0)
inspec-core (4.50.3)
@@ -282,13 +289,16 @@ GEM
net-ssh (6.1.0)
net-ssh-gateway (2.0.0)
net-ssh (>= 4.0.0)
+ net-ssh-multi (1.2.1)
+ net-ssh (>= 2.6.5)
+ net-ssh-gateway (>= 1.2.0)
nori (2.6.0)
octokit (4.21.0)
faraday (>= 0.9)
sawyer (~> 0.8.0, >= 0.5.3)
- ohai (17.7.8)
- chef-config (>= 14.12, < 18)
- chef-utils (>= 16.0, < 18)
+ ohai (16.17.0)
+ chef-config (>= 14.12, < 17)
+ chef-utils (>= 16.0, < 17)
ffi (~> 1.9)
ffi-yajl (~> 2.2)
ipaddress
@@ -403,11 +413,9 @@ GEM
unicode-display_width (2.1.0)
unicode_utils (1.4.0)
uuidtools (2.2.0)
- vault (0.16.0)
- aws-sigv4
webrick (1.7.0)
win32-api (1.5.3-universal-mingw32)
- win32-certstore (0.6.2)
+ win32-certstore (0.5.3)
ffi
mixlib-shellout
win32-event (0.6.3)
@@ -458,8 +466,11 @@ PLATFORMS
DEPENDENCIES
artifactory
berkshelf (>= 7.0)
+ chef (~> 16.0)
+ chef-config (~> 16.0)
+ chef-utils (~> 16.0)
kitchen-vagrant (>= 1.3.1)
- ohai
+ ohai (~> 16.0)
omnibus!
omnibus-software!
pedump
diff --git a/omnibus/README.md b/omnibus/README.md
index a10190c136..2055f6c0fd 100644
--- a/omnibus/README.md
+++ b/omnibus/README.md
@@ -10,7 +10,8 @@ This project creates full-stack platform-specific packages for the following pro
You must have a sane Ruby environment with Bundler installed. Ensure all the required gems are installed:
```shell
-bundle install --without development
+bundle config set --local without development
+bundle install
```
## Usage
@@ -80,7 +81,8 @@ Then login to the instance and build the project as described in the Usage secti
```shell
$ bundle exec kitchen login <PROJECT>-ubuntu-1204
[vagrant@ubuntu...] $ cd chef/omnibus
-[vagrant@ubuntu...] $ bundle install --without development # Don't install dev tools!
+[vagrant@ubuntu...] $ bundle config set --local without development # Don't install dev tools!
+[vagrant@ubuntu...] $ bundle install
[vagrant@ubuntu...] $ ...
[vagrant@ubuntu...] $ bundle exec omnibus build <PROJECT> -l internal
```
@@ -89,7 +91,8 @@ $ bundle exec kitchen login <PROJECT>-ubuntu-1204
$ kitchen login chef-ubuntu-1604
[vagrant@ubuntu...] $ source load-omnibus-toolchain.sh
[vagrant@ubuntu...] $ cd chef/omnibus
-[vagrant@ubuntu...] $ bundle install --without development # Don't install dev tools!
+[vagrant@ubuntu...] $ bundle config set --local without development # Don't install dev tools!
+[vagrant@ubuntu...] $ bundle install
[vagrant@ubuntu...] $ ...
[vagrant@ubuntu...] $ bundle exec omnibus build chef -l internal
```
@@ -106,7 +109,9 @@ C:\>C:\vagrant\load-omnibus-toolchain.ps1
C:\>cd C:\vagrant\chef\omnibus
-C:\vagrant\chef\omnibus>bundle install --without development
+C:\vagrant\chef\omnibus>bundle config set --local without development
+
+C:\vagrant\chef\omnibus>bundle install
C:\vagrant\chef\omnibus>bundle exec omnibus build chef -l internal
```