chef-infra - 有什么方法可以在knife bootstrap过程中指定节点名称吗?

标签 chef-infra

正在使用托管 Chef ,我想通过明确提及节点名称而不是默认主机名来引导 linux/windows 节点,我该怎么做?

最佳答案

Knife 支持节点名称选项。请参阅documentation .

示例:

knife bootstrap myhost.mydomain.com \
  --node-name server1 \
  --ssh-user myuser \
  --sudo \
  --run-list "role[mymachines]" 

关于chef-infra - 有什么方法可以在knife bootstrap过程中指定节点名称吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19342713/

相关文章:

chef-infra - 在 Chef 自定义资源中获取调用 Recipe

amazon-web-services - Chef 运行期间的 AWS OpsWorks 层

mysql - Chef MySQL Recipe 弃用警告

vagrant - 在 ESXi 上的 VMWare 虚拟机上运行的 Virtualbox

linux - 我们真的应该使用 chef 来管理 sudoers 文件吗?

ruby - stub include_recipe 调用以不采取任何操作,但仍将配方计为包含的内容

chef-infra - Mac 10.7.2 上的 Chef、Vagrant 的配置失败

linux - Chef 服务器卡在 Docker 容器上运行的 ruby​​_block [supervise_rabbitmq_sleep] 操作

apt - 如何让 Chef 在运行其他 Recipe 之前运行 apt-get update

ruby - 如何用vagrant和chef创建虚拟主机