Improve mixlib-install to allow other products
Nobody has claimed this yet.
- Dominant language
- Ruby
- Stars
- 13
- Forks
- 55
- Avg merge
- 2d 15h
- Merged PRs (30d)
- 8
Description
Describe the Enhancement:
Actually I need two endpoints, one using Chef's mixlib-install and one overriding the mixlib-isntall with cinc project's one.
Improving mixlib-install to take an extra file to allow other products with their api url would avoid that.
Describe the Need:
I'd wish to have an internal omnitruck endpoint allowing me to install chef or cinc.
Current Alternative
Monkey patching mixlib-install options like this:
module Mixlib
class Install
class Options
SUPPORTED_PRODUCT_NAMES += %w(cinc auditor cinc-server)
def initialize(options)
@options = options
@errors = []
PRODUCT_MATRIX.product "auditor" do
product_name "Cinc Auditor"
package_name "auditor"
downloads_product_page_url :not_available
end
PRODUCT_MATRIX.product "cinc" do
product_name "Cinc client"
package_name "cinc"
downloads_product_page_url :not_available
end
PRODUCT_MATRIX.product "cinc" do
product_name "Cinc client"
package_name "cinc"
downloads_product_page_url :not_available
end
ENV['PACKAGE_ROUTER_ENDPOINT'] = ENV.fetch('PACKAGE_ROUTER_ENDPOINT', 'http://packages.cinc.sh') if %w(cinc auditor cinc-server).include? options[:product_name]
# Store original options in cases where we must remap
@original_platform_version = options[:platform_version]
resolve_platform_version_compatibility_mode!
map_windows_versions!
validate!
end
end
end
end
Can We Help You Implement This?:
Merge request incoming :)
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
No file or test is named in the issue. Start by locating mixlib-install's product options, product matrix, and package-router endpoint configuration, then inspect existing tests for supported products and endpoint selection. Done means an additional configuration input can support Chef and Cinc products with separate API endpoints without monkey patches.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ruby
- Domain
- tooling
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100