Chef Vault用户创建 [英] Chef Vault user creation
问题描述
是否有一种方法可以覆盖按字母顺序创建用户的厨师保险库?
Is there a way to override chef-vault from creating users alphabetically?
按顺序,如果我的用户中有alf,bob,cain和dave
In order words, if i have a user alf,bob,cain and dave in my vault, is it possible to have user cain get created before alf?
推荐答案
文件库的管理员始终显示为已排序的文件库列表:
The admins of a vault are always displayed as a sorted list:
$ knife vault show secrets app1 -p admins
admins:
alf
bob
cain
dave
id: app1
..
..
但是在功能上为什么要这么重要?当访问保管库时,每个管理员用户或厨师节点都将使用其私钥进行一次身份验证。
But why should that matter functionally? When accessing the vault each admin user or chef node will be authenticating once, using their private key.
用户本身并不会创建。可以使用新的管理员列表简单更新保管库。它假定用户已经存在,否则将引发错误:
And users are not created per se. The vault is simple updated with a new list of admins. It assumes that the users already exist, otherwise an error will be thrown:
$ knife vault update secrets app1 -A 'alf,bob,cain,dave,onemore'
$ knife vault show secrets app1 -p admins
admins:
alf
bob
cain
dave
onemore
id: app1
..
..
这篇关于Chef Vault用户创建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!