ceph / ceph-cookbook

Chef cookbooks for Ceph
Apache License 2.0
100 stars 108 forks source link

Get OSD bootstrap key on the current node if possible #197

Closed scarvalhojr closed 9 years ago

scarvalhojr commented 9 years ago

When deploying monitor and OSD daemons on the same node, it is possible to retrieve the OSD bootstrap key from the node itself (if the monitor recipe has already been applied), instead of relying on a search in Chef for existing monitors.

This change also serves as a workaround when monitor and OSD daemons are being installed on the first node of the cluster and, for some reason, chef-client doesn't converge at the first attempt. Without this change, running chef-client a second time, the node might not be found with the Chef search.

hufman commented 9 years ago

This looks great!

scarvalhojr commented 9 years ago

Any chance this will get merged?