]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-cookbooks.git/commit
Support client creation with pre-generated key 200/head
authorSergio de Carvalho <scarvalhojr@users.noreply.github.com>
Thu, 7 May 2015 17:47:26 +0000 (18:47 +0100)
committerSergio de Carvalho <scarvalhojr@users.noreply.github.com>
Tue, 19 May 2015 13:43:59 +0000 (14:43 +0100)
commita3a68dd8b22d72972695d7039a4df6a7823644ef
treef71545121b23960573063cbc8ce50fa22a3ca795
parent4c0ed76518426c185c1972311df4e28d986edd13
Support client creation with pre-generated key

Extend the client LWRP to allow a Ceph auth entity to be created with
a given key, instead of letting ceph auth generate a random one. This
is useful when the keys are managed elsewhere and are known beforehand.

Also, change the way an entity is recreated in case of a caps mismatch.
Instead of relying on parsing an error message from auth get-or-create,
explicitly check if entity exists and matches specification.
providers/client.rb
resources/client.rb