2

我正在尝试使用以下命令创建一个 chef-vault 来存储一些密码:

knife vault create revrecsecrets revrecpass -A "revrec-validator,node1,node2,node3" -J data_bags/revrecpass.json -M client

其中 revrecpass.json 包含:

{ "oracle_pass":"welcome1", "ora_db_passwd":"Welcome1", "weblogic_pass":"welcome1"}

我有 3 个客户:

#knife client list
node1
node2
node3
revrec-validator

但是现在在尝试访问保险库时,它说没有保险库:

# knife vault list

什么都不返回。

和 :

尝试刷新:(说保险库不存在)

# knife vault refresh revrecsecrets revrecpass
ERROR: ChefVault::Exceptions::ItemNotFound: revrecsecrets/revrecpass does not exist, use 'knife vault create' to create.

试图重新创建:(说已经存在)

# knife vault create revrecsecrets revrecpass -A "revrec-validator,node1,node2,node3" -J data_bags/revrecpass.json -M client
ERROR: ChefVault::Exceptions::ItemAlreadyExists: revrecsecrets/revrecpass already exists, use 'knife vault remove' 'knife vault update' or 'knife vault edit' to make changes.

我无法弄清楚,这里有什么问题?有没有人遇到过类似的问题或任何建议将不胜感激。

ruby --version
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]
knife --version
Chef: 12.4.1
/opt/chef/embedded/bin/gem list chef-vault

*** LOCAL GEMS ***

chef-vault (2.9.0)
4

0 回答 0