chef-cookbooks / chef_client_updater

Chef Cookbook to update the chef client on nodes
https://supermarket.chef.io/cookbooks/chef_client_updater
Apache License 2.0
54 stars 79 forks source link

product_name does not allow 'cinc' #249

Open EugenMayer opened 1 year ago

EugenMayer commented 1 year ago

When setting product_name to 'cinc'

chef_client_updater 'upgrade cinc' do
  post_install_action 'kill'
  download_url_override download_url
  checksum checksum

  version version
  install_timeout 120
  product_name "cinc"
end

We get

 Error executing action `update` on resource 'chef_client_updater[upgrade cinc]'
================================================================================

     Mixlib::Install::Options::InvalidOptions
     ----------------------------------------
     Unknown product name cinc.
     Must be one of: analytics, angry-omnibus-toolchain, angrychef, automate, chef, chef-backend, chef-server, chef-server-ha-provisioning, chef-workstation, chefdk, compliance, delivery, ha, harmony, inspec, mac-bootstrapper, manage, marketplace, omnibus-toolchain, omnibus-gcc, private-chef, push-jobs-client, push-jobs-server, reporting, supermarket, sync
everii-mapi commented 1 year ago

I am seeing the same issue, I tried various suggestions (e.g. setting [chef_client_updater][rubygems_url], setting [ohai][plugin_path]) but could not get it working.

mrswadge commented 1 year ago

Also seeing the same issue myself. I think the issue is from mixlib as I couldn't see these items listed in the updater code. I found this which looks related. https://github.com/chef/mixlib-install/issues/339

dkowis commented 8 months ago

I just ran into this problem yesterday using cinc-client 18.0.3 A fresh cinc-client run and I got the unknown product name error.