【问题标题】:Configure Chef server 11 on Debian machine在 Debian 机器上配置 Chef server 11
【发布时间】:2015-11-14 02:16:24
【问题描述】:

我尝试在 debian 机器上使用 Chef(版本 8:Jessy)。 我已经用这个命令安装了 Chef:

apt-get install chef chef-server

之后,我尝试使用此命令配置 Knife:

knife configure -i

在配置结束时出现此错误:

ERROR: Your private key could not be loaded from /etc/chef-server/admin.pem
Check your configuration file ensure that your private key is readable

在存储库 /etc/chef 我只有一个文件:“client.rb”。

你能帮帮我吗?

塞缪尔

PS:对不起我的英语不好(我是法国人;))

【问题讨论】:

  • 您使用的是哪个 apt repo? apt.opscode.com 中的那个不再使用它,它仅适用于旧版 Chef 10。如果您已将 Chef 11 .deb 放在自己的存储库中,请忽略此警告。
  • 我使用了 aptitude,但我不使用 repo apt.opscode.com。我将用这个 repo 重新安装 chef。
  • 不,不要使用那个 repo。它只为您提供旧版本。转到downloads 页面并在那里获取 .deb (我知道这很糟糕......我也更愿意通过官方的 apt repo 来获取它们,但这样你只能放将其放入自己的仓库中)。
  • 但是我有一台 Debian 机器,在下载页面上我们只有 UbuntuUbuntu Enterprise 的 Chef Server ...
  • 修正:在Chef服务器的下载页面上,他们指定.deb文件与Debian兼容。

标签: configuration automation debian chef-infra


【解决方案1】:

安装 Chef Server 11 后,您必须运行 chef-server-ctl reconfigure,然后提取服务器。这在docs 中有描述,也应该在安装 debian 包后发出。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-10-22
    • 1970-01-01
    • 2017-02-12
    • 2013-10-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多