5.5.3.2 ceph auth get-or-create
ceph auth get-or-create 此命令是创建用户较为常见的方式之一,因为它会返回包含用户名(在方括号中)和密钥的密钥文件格式。如果该用户已存在,此命令只以密钥文件格式返回用户名和密钥。您可以使用-o 文件名选项将输出保存到某个文件。
#创建用户
ceph@ceph-deploy:~/ceph-cluster$ ceph auth get-or-create client.raymond mon 'allow r' osd 'allow rwx pool=mypool'
[client.raymond]
key = AQCfxmxiTGZxFRAA8E2BkXz+7nT67d67QYI1BA==
#验证用户
ceph@ceph-deploy:~/ceph-cluster$ ceph auth get client.raymond
[client.raymond]
key &#