Chef Vault user creation

醉酒当歌 提交于 2019-12-13 07:29:17

问题


Is there a way to override chef-vault from creating users alphabetically?

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?


回答1:


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
..
..


来源:https://stackoverflow.com/questions/39321994/chef-vault-user-creation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!