-
Notifications
You must be signed in to change notification settings - Fork 54
Open
Labels
Status: UntriagedAn issue that has yet to be triaged.An issue that has yet to be triaged.
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 :)
Metadata
Metadata
Assignees
Labels
Status: UntriagedAn issue that has yet to be triaged.An issue that has yet to be triaged.