【问题标题】:Permissions to create clients on chef-server在 chef-server 上创建客户端的权限
【发布时间】:2015-11-06 15:14:12
【问题描述】:

在 chef-server 上,我有一个组 provisioners 供应该有权引导和配置节点的用户使用,即所谓的 validator-less

在引导机器时,knife 尝试在 Chef 服务器上创建新的客户端和节点。问题在于该组的 ACL。在 Global Permissions 部分,我可以找到容器并授予 create 仅对节点但不授予客户端的权限。这就是knife bootstrap 失败的原因:

Creating new client for node-01
ERROR: You authenticated successfully to https://chef-server:443/organizations/test as mlanin but you are not authorized for this action
Response:  missing create permission

如何为客户端授予创建权限?

【问题讨论】:

  • 看看knife-acl web-ui 没有实现在客户端容器上配置acl。
  • @Tensibai 非常感谢!不知何故错过了。

标签: chef-infra knife


【解决方案1】:

您需要直接通过knife-acl 插件或knife edit .../_acl.json 编辑ACL。 UI 隐藏了一些权限内容以避免过于复杂。

参考:https://github.com/chef/knife-acl

【讨论】:

    【解决方案2】:

    knife-acl gem 是正确的答案。具体到 OP 的问题,授予将客户端创建为“provisioners”组成员的能力。

    knife acl add group provisioners containers clients create
    

    我发现我需要为全新安装的 chef-server 上的“用户”组执行此操作。开箱即用的权限似乎并没有真正考虑到无验证器。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-01-22
      • 2014-09-10
      • 2018-09-30
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-04
      • 1970-01-01
      相关资源
      最近更新 更多