【发布时间】:2014-06-23 20:02:19
【问题描述】:
这是在 Ubuntu 机器上。我在 Chef 服务器上安装了 Knife Backup gem 来备份服务器。
sudo gem 安装刀备份
现在我创建一个knife.rb 文件,配置如下。
log_level :info
log_location STDOUT
validation_client_name 'chef-validator'
validation_key '/etc/chef-server/chef-validator.pem'
chef_server_url 'https://ip'
当我运行以下命令时,
sudo刀备份导出-D /etc/chef/backups -c刀.rb
它显示错误:-
/opt/vagrant_ruby/lib/ruby/gems/1.8/gems/ohai-7.0.4/lib/ohai/loader.rb:188: warning: character class has [' without escape /opt/vagrant_ruby/lib/ruby/gems/1.8/gems/ohai-7.0.4/lib/ohai/loader.rb:188: warning: regexp has]' without escape
Backing up clients
ERROR: Your private key could not be loaded from /etc/chef/client.pem
Check your configuration file and ensure that your private key is readable
【问题讨论】:
标签: chef-infra