在chef刀ec2中使用角色需要正确的语法

时间:2016-11-09 21:43:20

标签: chef knife

我试图使用我在网上看过的例子中的刀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

0 个答案:

没有答案