You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
chef install CLI output "You can use the lockfile to install the locked cookbooks on another machine."
If you copy a lock.json to another system, you get output like this:
$ chef install base.lock.json
Error: Policyfile not found at path /home/mattray/base.rb
$ chef export base.lock.json --archive .
Error: Invalid lockfile data
Reason: (ChefCLI::CachedCookbookNotFound) Cookbook `audit' not found at expected cache location `audit-9.4.0-supermarket.chef.io' (full path: `/home/mattray/.chef-workstation/cache/cookbooks/audit-9.4.0-supermarket.chef.io')
But if you just create an empty file, it works.
$ touch base.rb
$ chef install base.lock.json
Installing cookbooks from lock
Installing audit 9.4.0
Installing chef-client 11.5.0
Installing cron 6.3.1
Installing iptables 7.1.0
Installing logrotate 2.2.3
Installing openssh 2.8.1
$ chef export base.lock.json --archive .
Exported policy 'base' to /home/mattray/base-f2263ceeb4cc1ddd9ea2dd0eb70718bb1e63cdbec1c9686b4340c3ab8c372824.tgz
Description
chef install
CLI output "You can use the lockfile to install the locked cookbooks on another machine."If you copy a lock.json to another system, you get output like this:
But if you just create an empty file, it works.
Chef Workstation Version
Workstation 20.6.62 on
Platform Version
MacOS 14 and Debian 10
Aha! Link: https://chef.aha.io/features/SH-2414
The text was updated successfully, but these errors were encountered: