Need way to pin Chef version for omnibus install
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Fix Released
|
Medium
|
Ethan Apodaca |
Bug Description
Although it is possible to specify an alternate URL for the omnibus installer, there's no way to request installation of a particular version. The downloaded (install.sh) artifact from the URL takes a '-v VERSION' argument, but there's no way to pass that argument through the cc_chef cloud-init module.
Without any way to pin the version, I am doomed to see messages like this in the cloud-init output logs:
Downloading Chef for ubuntu...
downloading https:/
to file /tmp/install.
trying wget...
url https:/
md5 d8421c9b3010deb
sha256 e06eb748e44d0a3
downloaded metadata file looks valid...
downloading https:/
to file /tmp/install.
trying wget...
Comparing checksum with sha256sum...
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
You are installing an omnibus package without a version pin. If you are installing
on production servers via an automated process this is DANGEROUS and you will
be upgraded without warning on new releases, even to new major releases.
Letting the version float is only appropriate in desktop, test, development or
CI/CD environments.
WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
Installing Chef
installing with dpkg...
...
Related branches
- Chad Smith: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 266 lines (+138/-24)4 files modifiedcloudinit/config/cc_chef.py (+33/-12)
cloudinit/util.py (+25/-0)
doc/examples/cloud-config-chef.txt (+4/-0)
tests/unittests/test_handler/test_handler_chef.py (+76/-12)
- Chad Smith: Approve
- Server Team CI bot: Approve (continuous-integration)
-
Diff: 47 lines (+12/-1)2 files modifiedcloudinit/config/cc_chef.py (+8/-1)
doc/examples/cloud-config-chef.txt (+4/-0)
Changed in cloud-init: | |
status: | New → Confirmed |
Changed in cloud-init: | |
importance: | Undecided → Medium |
assignee: | nobody → Ethan Apodaca (papodaca) |
Changed in cloud-init: | |
status: | Confirmed → In Progress |
Changed in cloud-init: | |
status: | In Progress → Fix Committed |
milestone: | none → 0.7.10 |
With Chef 13 just released it is getting more serious - there is currently no way to force install of version 12.