ceph / ceph-cookbook

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

Get OSD bootstrap on current node if possible #196

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.

guilhem commented 9 years ago

seems ok to me. @hufman ? can you just squash your commit?

scarvalhojr commented 9 years ago

I've squashed the commits and will submit another pull request. Thanks