I have built a package that I uploaded to a private organisation.
When trying to make use of the habitat cookbook https://github.com/chef-cookbooks/habitat and try to install that package using hab_package
, the chef run fails with No candidate version available for myorigin/mypackage
I was not able to resolve this issue, however I very much suspect that this is related to a missing token, to authorise the download from the private organisation. If I publish the package as public, then everything works.
I tried to set the token using a statement like this before the hab_package
statement:
ENV['HAB_AUTH_TOKEN'] = '_mytoken'
however that did not change anything.
Does anyone currently use chef to setup the supervisor deploying a private package and know how that should be done?