chef-solo with packer doesn't find cookbooks -
i'm trying build ami packer , chef-solo provisioner.
i'm quite new chef , didn't find out way dependencies handled berks packer, fine, went supermarket, downloaded cookbooks , drag them in cookbooks/
if check @ packer code :
"provisioners": [ { "type": "chef-solo", "cookbook_paths": ["cookbooks"], "run_list": [ "recipe[line]", "recipe[yum]", "recipe[yum-epel]", "recipe[yum-chef]", "recipe[mycookbook::default]" ] }, when packer runs got :
amazon-ebs: synchronizing cookbooks: amazon-ebs: - line (1.0.2) amazon-ebs: - yum (3.10.0) amazon-ebs: - yum-epel (0.6.6) amazon-ebs: - yum-chef (2.0.1) amazon-ebs: - mycookbook (1.7.5) amazon-ebs: installing cookbook gems: amazon-ebs: compiling cookbooks... but then, error :
could not find recipe default cookbook line
line cookbook @ same place mycookbook still, doesn't find it... tried line::default, same issue.
if set mycookbook first, starts mycookbook errors mycookbook needs line cookbook.
do have idea?
fixed: downloading directly supermarket bad idea, installed chefdk , run berks install have correct cookbooks.
then cookbooks worked , didn't need specify other cookbooks in runlist.
Comments
Post a Comment