我试图使用我在网上看过的例子中的刀ec2,但无论出于什么原因, - run-list选项都没有意识到我正在为它提供一个角色:
knife ec2 server create --run-list 'role[linux_server]' -I ami-9aaa1cf2 -f t2.small -S chef -i C:\Users\admin\Documents\Dev\Chef\chef.pem --ssh-user ubuntu --subnet subnet-xxxxxxx --associate-eip xxx.xxx.xxx.xxx
我收到此错误:
resolving cookbooks for run list: ["roles"]
Error Resolving Cookbooks for Run List:
Missing Cookbooks:
------------------
The following cookbooks are required by the client but don't exist on the server:
* roles
Expanded Run List:
------------------
* roles