简体   繁体   English

AWS Chef节点无法执行Chef运行列表

[英]Aws chef node not able to execute chef run list

I have installed chef workstation and chef server in my local machine and I'm able to connect chef node through workstation (node in Amazon EC2). 我已经在本地计算机上安装了Chef工作站和Chef服务器,并且能够通过工作站(Amazon EC2中的节点)连接Chef节点。

When I am bootstrapping node, chef node is not able to connect to chef server, I am always getting an error stating 当我引导节点时,chef节点无法连接到chef服务器,我总是收到一条错误消息,指出

your chef server url not correct if url correct network down. 您的厨师服务器网址不正确(如果网址正确,则网络中断)。

Please give me a solution, to execute run lists. 请给我一个解决方案,执行运行列表。

I am guising there is some HTTPS protocol problem 我猜有一些HTTPS协议问题

Bootstrap command: 引导命令:

Knife bootstrap 54.345.321.45  --ssh-user ubuntu --sudo --identity-file ~/.ssh/aws.pem --node-name awsnode1 --run-list 'recipe[create_folder]'

If I did a mistake in installation please provide information on how to install chefdk and chefserver in my PC and chef node in Amazon EC2. 如果安装错误,请提供有关如何在Amazon EC2的PC和Chef节点中安装ChefdkChefserver的信息。

What are pre required changes in my laptop and AWS to install properly? 要正确安装笔记本电脑和AWS,需要进行哪些预先更改?

This is not how you use Chef Server. 这不是您使用Chef Server的方式。 If it's on your workstation, chances are that is hidden behind a NAT so the EC2 VM cannot talk to it. 如果它在您的工作站上,则很有可能隐藏在NAT之后,因此EC2 VM无法与其通信。 You need to install Chef Server on an actual server that is reachable from both the workstation and all client nodes. 您需要在工作站和所有客户端节点都可以访问的实际服务器上安装Chef Server。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM