Open herb-ng opened 2 years ago
Hi there,
You're requesting support for a new package manager. We need to know some basic information about this package manager first. Please copy/paste the new package manager questionnaire, and fill it out in full.
Once the questionnaire is filled out we will evaluate if adding support for this manager is something we want to do.
Good luck,
The Renovate team
Sounds like supermarket would be a datasource while Berkshelf would be the manager
Did you read our documentation on adding a package manager?
Berkshelf https://docs.chef.io/workstation/berkshelf/
Ruby
Very popular. Berkshelf is the only dependency manager for Chef cookbooks.
There are two files Berksfile
and metadata.rb
.
The names of the two files do not change. See above
No
Yes, the Berksfile
is linked to metadata.rb
.
No
For example,
Berksfile
source 'https://supermarket.test.nimbus.expedia.com'
source 'https://supermarket.chef.io'
metadata
metadata.rb
name 'ewe-windows'
maintainer 'Example Maintainer'
maintainer_email 'tester@expedia.com'
description 'Installs ewe-windows specific recipes'
version '0.4.63'
gem 'deep_merge'
gem 'chef-sugar-ng'
depends 'windows', '= 4.3.5'
depends 'iis', '= 7.0.0'
depends 'powershell', '~> 6.1.3'
depends 'apt', '< 7.4.0'
depends 'logrotate', '< 3.0.0'
depends 'seven_zip', '< 3.0.0'
depends 'apparmor', '< 4.0.0'
depends 'mysql', '< 11.0.0'
depends 'pacman', '< 1.2.0'
depends 'ms_dotnet', '< 5.0.0'
lines that begin with depends
are the dependencies.
Semantic Versioning 2.0.0
^1.0.0
or 1.x
?Yes. See https://docs.chef.io/config_rb_metadata/ see Versioning Constraints e.g
depends 'powershell', '~> 6.1.3'
depends 'powershell', '< 6.1.3'
depends 'powershell', '> 6.1.3'
depends 'powershell', '= 6.1.3'
depends 'powershell', '>= 6.1.3'
depends 'powershell', '<= 6.1.3'
depends 'powershell', '<= 6.1.3'
^1.0.0
or 1.x
)yes.
Yes, the datasource is specified in the Berksfile
file. Multiple datasource are possible.
e.g. Berksfile file
source 'https://supermarket.test.nimbus.expedia.com'
source 'https://supermarket.chef.io'
metadata
No
No
No.
What would you like Renovate to be able to do?
I would like renovate to update cookbook dependency versions found in the Chef Cookbooks Berksfile and metadata.rb files.
Berkshelf is a dependency manager for Chef cookbooks. https://docs.chef.io/workstation/berkshelf/
Chef Supermarket is the repository / site for cookbooks. https://docs.chef.io/supermarket/
Cookbook's repository and dependencies location are defined in the Berksfile file.
Cookbook’s dependencies are listed in the metadata.rb file.
If you have any ideas on how this should be implemented, please tell us here.
Still in progress
Is this a feature you are interested in implementing yourself?
Yes