Closed mg03 closed 6 years ago
@mg03 can you provide the output from the resolve command with the --debug
flag enabled. Are you sure it's coming from the remote cookbook and not something located in the site-cookbooks
directory?
@chrisroberts : yup it was from remote cookbook which did not have a metadata.rb. This is resolved, user error. Thanx
hi chris
I have a directory for one project folder called chef-veda-logging with one site-cookbook in it
├── Batali ├── batali.manifest ├── how_to └── site-cookbooks └── veda-logging ├── Batali ├── Berksfile ├── Berksfile.lock ├── CHANGELOG.md ├── LICENSE ├── README.md ├── Vagrant_test_setup.rb ├── attributes │ └── default.rb ├── chefignore ├── metadata.rb ├── recipes │ ├── default.rb │ └── fluentd.rb ├── templates │ └── default │ ├── fluent.conf.erb │ ├── fluentd.service.erb │ ├── kubernetes.conf.erb │ ├── monitoring.conf.erb │ └── systemd.conf.erb └── test └── integration └── default └── serverspec ├── logging_spec.rb └── spec_helper.rb
The above is commited to git master with tag v0.3.0
Now in another folder lets say chef-veda-log-consume , I have created a Batali file like so
when i do , batali resolve I get error
[ERROR]: Reason - No such file or directory - Failed to locate metadata file in cookbook directory! ERROR: Errno::ENOENT: No such file or directory - Failed to locate metadata file in cookbook directory!
I have a metadata.rb in the chef-veda-logging/site-cookbooks/veda-logging
Any pointers will be appreciated?