【发布时间】:2019-03-11 01:12:01
【问题描述】:
错误:
Chef::Exceptions::UserIDNotFound
--------------------------------
cannot determine user id for 'builduser', does the user exist on this system?
这是我的(修剪过的)厨师食谱:
if node['platform'] == 'centos'
package 'yum-utils'
execute 'yum-config-manager --enable cr'
end
include_recipe "python::source"
...
## Setup key for jenkins... https://supermarket.chef.io/cookbooks/ssh_authorized_keys
ssh_authorize_key 'builduser@supermarket.com' do
key 'AAAAB3Nz...hiOQ=='
user 'builduser'
group 'builduser'
end
这个用户不是由这个配方创建的,但已经存在于这个 CentOS 虚拟机连接到的 Active Directory 中。
有人知道如何告诉厨师从 Active Directory 中读取此内容吗?
提前致谢
【问题讨论】:
标签: active-directory centos chef-infra